SHARE
TWEET

Untitled

a guest Jun 24th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. data_files = [x[2] for x in os.walk(os.path.dirname(sys.argv[0]))]
  2. hello = data_files[0]
  3. modulename = hello[0].split(".")[0]
  4.  
  5. import modulename
  6.      
  7. new_module = __import__(modulename)
  8.      
  9. import importlib
  10. module = importlib.import_module(module_name, package=None)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top