-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathSetup.py
40 lines (34 loc) · 1.6 KB
/
Setup.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
36
37
38
39
40
# Copyright (c) RedTiger (https://redtiger.shop)
# See the file 'LICENSE' for copying permission
# ----------------------------------------------------------------------------------------------------------------------------------------------------------|
# EN:
# - Do not touch or modify the code below. If there is an error, please contact the owner, but under no circumstances should you touch the code.
# - Do not resell this tool, do not credit it to yours.
# FR:
# - Ne pas toucher ni modifier le code ci-dessous. En cas d'erreur, veuillez contacter le propriétaire, mais en aucun cas vous ne devez toucher au code.
# - Ne revendez pas ce tool, ne le créditez pas au vôtre.
try:
import sys
import os
def OpenTelegram():
try:
import webbrowser
from Program.Config.Config import telegram
webbrowser.open(f'https://{telegram}')
except: pass
if sys.platform.startswith("win"):
os.system("cls")
print("Installing the python modules required for the RedTiger Tool:\n")
os.system("python -m pip install --upgrade pip")
os.system("python -m pip install -r requirements.txt")
OpenTelegram()
os.system("python RedTiger.py")
elif sys.platform.startswith("linux"):
os.system("clear")
print("Installing the python modules required for the RedTiger Tool:\n")
os.system("python3 -m pip3 install --upgrade pip")
os.system("python3 -m pip3 install -r requirements.txt")
OpenTelegram()
os.system("python3 RedTiger.py")
except Exception as e:
input(e)