edit back the timestamp and add kepadatan
This commit is contained in:
14
jalankan.py
14
jalankan.py
@ -1,11 +1,15 @@
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
# Jalankan app.py
|
||||
p1 = subprocess.Popen(["python", "this.py"])
|
||||
# Path to Python in the virtual environment
|
||||
python_path = os.path.join("env", "bin", "python")
|
||||
|
||||
# Jalankan main.py
|
||||
p2 = subprocess.Popen(["python", "main1.py"])
|
||||
# Run this.py
|
||||
p1 = subprocess.Popen([python_path, "ini_dia.py"])
|
||||
|
||||
# Tunggu keduanya selesai (opsional, biasanya biarkan berjalan)
|
||||
# Run main1.py
|
||||
p2 = subprocess.Popen([python_path, "main1.py"])
|
||||
|
||||
# Optional: wait for both to complete (remove if you want them to run independently)
|
||||
p1.wait()
|
||||
p2.wait()
|
||||
|
||||
Reference in New Issue
Block a user