Mercurial > hg > contenttransformer
view contenttransformer/utils.py @ 25:2a2063d571a6 default tip
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 28 Dec 2020 20:42:56 +0000 |
parents | 466443d48906 |
children |
line wrap: on
line source
#!/usr/bin/env python def import_path(module): path = module.split('.') module = __import__(path[0]) for name in path[1:]: module = getattr(module, name) return module if __name__ == '__main__': import sys for i in sys.argv[1:]: print(import_path(i))