def Run(ImportName): try: import sys sys.path.append(ImportName + "Source") sys.path.append(ImportName + "Source/env/Lib/site-packages") # import os #Currently not working (this bit of code is designed to bring working directory into running project) # CL = os.getcwd() # os.chdir(ImportName + "Source") # sys.path.append("") # sys.path.append("env/Lib/site-packages") __import__(ImportName) # os.chdir(CL) except Exception as e: