-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstart.py
35 lines (30 loc) · 1.02 KB
/
start.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from sources.Startup import Startup
from argparse import ArgumentParser
if __name__ == "__main__":
parser = ArgumentParser(description="Prompting tools")
parser.add_argument(
"--update",
action="store_true",
help="Update packages in the virtual environment",
)
parser.add_argument(
"--reinstall", action="store_true", help="Reinstall virtual environment"
)
parser.add_argument(
"--no_check",
action="store_true",
help="Pass the virtual envrionment folder check",
)
parser.add_argument("--gui", action="store_true", help="Starts GUI application")
parser.add_argument("--cli", action="store_true", help="Starts CLI application")
args = parser.parse_args()
startup = Startup()
startup.CreateVenv(args.no_check)
if args.update:
startup.UpdateVenv()
if args.reinstall:
startup.ReInstallVenv()
if args.gui:
startup.StartGUI()
elif args.cli:
startup.StartCLI()