# AGPL 3 or any later version # (C) J.Y.Amihud ( Blender Dumbass ) # Basic sys to get through to different modules import os import sys from modules.Common import * if len(sys.argv) < 2 or "--help" in sys.argv: from modules import Help Help.Help() elif "--set" in sys.argv: from modules import Set Set.Set() elif "--config" in sys.argv: from modules import Set data = Set.Load() # Making sure Set.Save(data) # that config.json exists os.system("nano "+Set.Folder()+"/config.json") elif "--run" in sys.argv: from modules import Run elif "--folder" in sys.argv: from modules import Set os.system("xdg-open "+Set.Folder()) elif "--transfer" in sys.argv: try: folder = title = sys.argv[ sys.argv.index("--transfer") + 1] if "--" in folder: 1/0 # Failing this for the error message. from modules import Legacy Legacy.Transfer(folder) except Exception as e: print(clr["bold"]+clr["tdrd"]+"Error:"+clr["norm"]+" Folder Wasn't Specified!", e) print('Use: $ python3 run.py --transfer ~/Software/blenderdumbass_site/')