from types import ModuleType
def import_any(path, name=None):
module = ModuleType(name or "dummy")
execfile(path, globals(), module.__dict__)
return module
If it won't be simple, it simply won't be. [Hire me, source code] by Miki Tebeka, CEO, 353Solutions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment