-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (18 loc) · 754 Bytes
/
setup.py
File metadata and controls
23 lines (18 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import sys
import os
print("Installing the python modules required...")
try:
if sys.platform.startswith("win"):
os.system("python -m pip install --upgrade pip")
os.system("python -m pip install -r requirements.txt")
os.system("python cyb3rtech.py")
elif sys.platform.startswith("linux") or sys.platform.startswith("darwin"): # darwin is the platform name for macOS
os.system("python3 -m pip install --upgrade pip")
os.system("python3 -m pip install -r requirements.txt")
os.system("python3 cyb3rtech.py")
else:
print("Unsupported platform:", sys.platform)
except Exception as e:
print("An error occurred:", e)
if sys.platform.startswith("win"):
os.system("pause")