Skip to content

Commit

Permalink
Fix prechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
itzCozi authored Jun 13, 2023
1 parent 4c127ac commit 072c096
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions data/safeguard-files/prechecks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
prechecks.py -> prechecks.py
Version 1.6
Version 1.7 (UNRELEASED)
'''

# Imports
Expand Down Expand Up @@ -102,7 +102,8 @@ def preRun():
# Developers cover your eyes!
if not os.path.exists(Files.tronPath):
install('http://www.bmrf.org/repos/tron/Tron%20v12.0.5%20(2023-02-02).exe', Files.tronPathFolder, 'Tron v12.0.5 (2023-02-02).exe')
os.startfile(f'{Files.tronPathFolder}/Tron v12.0.5 (2023-02-02).exe')
os.system(f'cd {Files.tronPathFolder}')
os.system(f'{Files.tronPathFolder}/Tron v12.0.5 (2023-02-02).exe')
with open(Files.logFile, 'a') as f:
f.write(f'Program file [{Files.tronPath}] !REDOWNLOADED! - AT: {globals.now}')
if globals.debug:
Expand All @@ -116,7 +117,7 @@ def preRun():
print(f'{Fore.RED}Program file [{Files.pythonFile}] !MISSING! - AT: {globals.now}{Style.RESET_ALL}')

if not os.path.exists(Files.knownThreatFile):
install('itzcozi.github.io/SafeGuard/data/safeguard-files/threatList.sg', Files.knownThreatFileFolder, 'threatList.sg')
install('https://itzcozi.github.io/SafeGuard/data/safeguard-files/threatList.sg', Files.knownThreatFileFolder, 'threatList.sg')
with open(Files.logFile, 'a') as f:
f.write(f'Program file [{Files.knownThreatFile}] !REDOWNLOADED! - AT: {globals.now}')
if globals.debug:
Expand Down

0 comments on commit 072c096

Please sign in to comment.