Skip to content

Commit 0823851

Browse files
Basic refactoring of the code.
1 parent f5a4072 commit 0823851

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

CODE/Logicytics.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -624,13 +624,13 @@ def setup():
624624
files = []
625625
Continue = ""
626626

627+
# The First 2 commands are part of the startup, the Last 2 commands are part of the cleanup process
628+
# Debugger.py, Legal.py, UAC.ps1, UACPY.py, Backup.py,
629+
# Restore.py, Update.py, Extra_Menu.py, Logicytics.py
630+
# Windows_Defender_Crippler.bat, APIGen.py,
631+
# Structure.py, Crash_Reporter.py, Error_Gen.py, Unzip_Extra.py
632+
# and more are out of scope.
627633
if run == "run":
628-
# The First 2 commands are part of the startup, the Last 2 commands are part of the cleanup process
629-
# Debugger.py, Legal.py, UAC.ps1, UACPY.py, Backup.py,
630-
# Restore.py, Update.py, Extra_Menu.py, Logicytics.py
631-
# Windows_Defender_Crippler.bat, APIGen.py,
632-
# Structure.py, Crash_Reporter.py, Error_Gen.py, Unzip_Extra.py
633-
# and more are out of scope.
634634
files = [
635635
"./CMD_Disabled_Bypass.py",
636636
"./Simple_Password_Miner.py",

DEV/Downloader.py

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ def check_python_installed():
1616
Function to check if Python is installed.
1717
"""
1818
try:
19-
subprocess.run([sys.executable, "--version"], check=True, capture_output=True, text=True)
19+
subprocess.run(
20+
[sys.executable, "--version"], check=True, capture_output=True, text=True
21+
)
2022
print("Python is already installed.")
2123
return True
2224
except FileNotFoundError:
@@ -66,7 +68,9 @@ def install_python(installer_path):
6668
return
6769
print("Initiating Python installation...")
6870
try:
69-
subprocess.run([installer_path, "/quiet", "InstallAllUsers=1", "PrependPath=1"], check=True)
71+
subprocess.run(
72+
[installer_path, "/quiet", "InstallAllUsers=1", "PrependPath=1"], check=True
73+
)
7074
print("Python installation completed successfully.")
7175
except Exception as e:
7276
print(f"Error during Python installation: {e}")
@@ -84,14 +88,18 @@ def clone_repo_if_not_exists(repo_url):
8488
:rtype: None
8589
"""
8690
repo_name = "Logicytics"
87-
if not any(path.name == repo_name and path.is_dir() for path in script_dir.iterdir()):
91+
if not any(
92+
path.name == repo_name and path.is_dir() for path in script_dir.iterdir()
93+
):
8894
try:
8995
subprocess.run(["git", "clone", repo_url], cwd=script_dir, check=True)
9096
print(f"Repository {repo_name} cloned successfully.")
9197
except Exception as e:
9298
print(f"Failed to clone repository {repo_name}: {e}")
9399
else:
94-
print(f"The repository {repo_name} already exists in the current directory. Skipping clone.")
100+
print(
101+
f"The repository {repo_name} already exists in the current directory. Skipping clone."
102+
)
95103

96104

97105
# Main function
@@ -120,7 +128,12 @@ def main():
120128

121129
# Run pip install
122130
try:
123-
result = subprocess.run(["pip", "install", "-e", "."], capture_output=True, text=True, check=True)
131+
result = subprocess.run(
132+
["pip", "install", "-e", "."],
133+
capture_output=True,
134+
text=True,
135+
check=True,
136+
)
124137
with open("Download.log", "w") as log_file:
125138
log_file.write(result.stdout)
126139

@@ -142,4 +155,4 @@ def main():
142155

143156

144157
if __name__ == "__main__":
145-
main()
158+
main()

0 commit comments

Comments
 (0)