From 68a33107c54b3c4586359d7bac9e43ee24052305 Mon Sep 17 00:00:00 2001 From: Enderbyte09 <83879635+Enderbyte09@users.noreply.github.com> Date: Fri, 10 Jun 2022 16:59:14 -0700 Subject: [PATCH] 2.30 Added CLI mode --- BasicUtilities.py | 18 +++++++++--------- compile.bat | 8 ++++++++ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/BasicUtilities.py b/BasicUtilities.py index f15defa..aaf0e7f 100644 --- a/BasicUtilities.py +++ b/BasicUtilities.py @@ -1,6 +1,6 @@ SYSVERSION = '2.30' -SNAPSHOT = True -SNAPSHOTVERSION = 5 +SNAPSHOT = False +SNAPSHOTVERSION = 0 ASSEMBLEDVERSION = f"Basic Utilities {SYSVERSION}" if SNAPSHOT: ASSEMBLEDVERSION += f" Beta {SNAPSHOTVERSION}" @@ -4160,17 +4160,17 @@ def ckill(): except Exception as e: print(f"ERROR in command: {e}") elif command == 'stat': - print('lines: 7382') - print('print statements: 1035') - print('Variables: 1879') - print('comparisons 482') - print('Exception handling loops 300') + print('lines: 7720') + print('print statements: 1106') + print('Variables: 1954') + print('comparisons 2000') + print('Exception handling loops 313') print('While loops 56') print('For loop 103') - print('Commands: 173') + print('Commands: 192') print('Libraries Imported 28') print('files utilized 77') - print('Tkinter windows used 108') + print('Tkinter windows used 103') print("Functions: 150") print("Classes: 4") diff --git a/compile.bat b/compile.bat index 84f9058..848198e 100644 --- a/compile.bat +++ b/compile.bat @@ -2,6 +2,8 @@ move .\BasicUtilities\BasicUtilities.py BasicUtilities.py move .\BasicUtilities\scupdate.py scupdate.py del /s /f /q .\BasicUtilities\* del .\dist\BasicUtilities.exe +del .\compiler-output\BasicUtilities.exe +del .\compiler-output\BasicUtilities.py rmdir .\BasicUtilities\.temp rmdir .\BasicUtilities\crash_reports .\pyinstaller --icon=bu.ico --version-file=vf.txt --noconfirm BasicUtilities.py @@ -9,9 +11,15 @@ rmdir .\BasicUtilities\crash_reports xcopy /s /e .\dist\BasicUtilities .\BasicUtilities copy bu.ico .\BasicUtilities\bu.ico copy turtle.ico .\BasicUtilities\turtle.ico +copy license.txt .\BasicUtilities\license.txt +copy scupdate.py .\BasicUtilities\scupdate.py +del /s /f /q .\compiler-output\* "C:\Program Files (x86)\Inno Setup 6\iscc.exe" bu.iss del /s /f /q .\BasicUtilities\* rmdir /s /q .\BasicUtilities\ mkdir BasicUtilities +copy BasicUtilities.py .\compiler-output +copy bu.iss .\compiler-output +copy .\dist\BasicUtilities.exe .\compiler-output move BasicUtilities.py .\BasicUtilities\BasicUtilities.py move scupdate.py .\BasicUtilities\scupdate.py \ No newline at end of file