Refactor: Move modules to module package, translate messages to English, and update main runner

This commit is contained in:
2026-09-01 16:11:06 +03:30
parent bafae4b212
commit 51585dbe52
9 changed files with 109 additions and 96 deletions

27
main.py Normal file
View File

@@ -0,0 +1,27 @@
import os
import sys
import subprocess
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
MODULE_DIR = os.path.join(BASE_DIR, "module")
scripts = [
"downloader_copier.py",
"extract_acc.py",
"install_novindesk.py"
]
for script in scripts:
script_path = os.path.join(MODULE_DIR, script)
print(f"[+] Running {script}...")
result = subprocess.run([sys.executable, script_path], capture_output=True, text=True)
if result.returncode == 0:
print(f"[+] {script} executed successfully.\n")
else:
print(f"[-] Error running {script}:")
if result.stdout:
print(result.stdout)
if result.stderr:
print(result.stderr)
break