init commit
This commit is contained in:
16
run.py
Normal file
16
run.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import subprocess
|
||||
|
||||
# لیست فایلها به ترتیب اجرا
|
||||
scripts = ["downloader_copier.py", "extract_acc.py", "install_novindesk.py"]
|
||||
|
||||
for script in scripts:
|
||||
print(f"در حال اجرای {script}...")
|
||||
# اجرای فایل و انتظار برای اتمام آن
|
||||
result = subprocess.run(["python", script], capture_output=True, text=True)
|
||||
|
||||
if result.returncode == 0:
|
||||
print(f"{script} با موفقیت اجرا شد.\n")
|
||||
else:
|
||||
print(f"خطا در اجرای {script}:")
|
||||
print(result.stderr)
|
||||
break # اگر خطایی رخ داد، ادامه روند متوقف شود
|
||||
Reference in New Issue
Block a user