Refactor: Move modules to module package, translate messages to English, and update main runner
This commit is contained in:
27
main.py
Normal file
27
main.py
Normal 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
|
||||
Reference in New Issue
Block a user