Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data_files = [x[2] for x in os.walk(os.path.dirname(sys.argv[0]))]
- hello = data_files[0]
- modulename = hello[0].split(".")[0]
- import modulename
- new_module = __import__(modulename)
- import importlib
- module = importlib.import_module(module_name, package=None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement