2024-11-19 13:47:45 +02:00
|
|
|
# AGPL 3 or any later version
|
|
|
|
# (C) J.Y.Amihud ( Blender Dumbass )
|
|
|
|
|
|
|
|
# Basic sys to get through to different modules
|
2024-11-19 19:04:03 +02:00
|
|
|
import os
|
2024-11-19 13:47:45 +02:00
|
|
|
import sys
|
|
|
|
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()
|
|
|
|
|
2024-11-19 19:04:03 +02:00
|
|
|
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")
|
|
|
|
|
2024-11-19 13:47:45 +02:00
|
|
|
elif "--run" in sys.argv:
|
|
|
|
from modules import Run
|
2024-11-19 19:04:03 +02:00
|
|
|
|
|
|
|
elif "--folder" in sys.argv:
|
|
|
|
from modules import Set
|
|
|
|
os.system("xdg-open "+Set.Folder())
|