Guest User

Untitled

a guest
Jun 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import imp
  2. import sys
  3.  
  4. if sys.version_info < (3,):
  5. description = ('.py', 'U', imp.PY_SOURCE)
  6. else:
  7. description = ('.py', 'r', imp.PY_SOURCE)
  8. mod = open('__main__.py', 'rb')
  9. imp.load_module('__main__', mod, '__main__.py', description)
Add Comment
Please, Sign In to add comment