Skip to content

Commit

Permalink
Simplified FTU
Browse files Browse the repository at this point in the history
  • Loading branch information
tassosmak committed Feb 2, 2023
1 parent fb807bd commit 5e9a8d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 30 deletions.
34 changes: 4 additions & 30 deletions Kernel/FTU.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,36 +71,10 @@ def __init__(self, edit_use=True):

#Install_Deperndices
clear_screen()
try:
import customtkinter
except ModuleNotFoundError:
ftu_install.install(name="customtkinter")
try:
import rich
except ModuleNotFoundError:
ftu_install.install(name="rich")
try:
import playwright
except ModuleNotFoundError:
ftu_install.install(name="playwright")
try:
import pyrad
except ModuleNotFoundError:
ftu_install.install(name="pyrad")
try:
import clipboard
except ModuleNotFoundError:
ftu_install.install(name="clipboard")
try:
import customtkinter
import pyrad
import clipboard
import playwright
import rich
except ModuleNotFoundError:
RD.CommandSay("PIP is missing\ncritical features will not work\n Wait a Moment", "FAIL")
import time
time.sleep(7)
num = 0
while len(flags.Dependecies) > num:
ftu_install.install(flags.Dependecies[num])
num += 1
os.system('playwright install')
if not flags.MODE == "9":
clear_screen()
7 changes: 7 additions & 0 deletions Kernel/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
Flags End
'''

Dependecies = [
'customtkinter',
'rich',
'playwright',
'pyrad',
'clipboard',
]

ModeList = [
'1',
Expand Down

0 comments on commit 5e9a8d4

Please sign in to comment.