Mercurial > hg > contenttransformer
changeset 24:466443d48906
python3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 11:08:44 -0800 |
parents | 9cf78a1c7373 |
children | 2a2063d571a6 |
files | contenttransformer/utils.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contenttransformer/utils.py Tue Nov 03 10:55:18 2020 -0800 +++ b/contenttransformer/utils.py Tue Nov 03 11:08:44 2020 -0800 @@ -1,5 +1,6 @@ #!/usr/bin/env python + def import_path(module): path = module.split('.') module = __import__(path[0]) @@ -7,7 +8,8 @@ module = getattr(module, name) return module + if __name__ == '__main__': import sys for i in sys.argv[1:]: - print import_path(i) + print(import_path(i))