Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import imp
- import sys
- if sys.version_info < (3,):
- description = ('.py', 'U', imp.PY_SOURCE)
- else:
- description = ('.py', 'r', imp.PY_SOURCE)
- mod = open('__main__.py', 'rb')
- imp.load_module('__main__', mod, '__main__.py', description)
Add Comment
Please, Sign In to add comment