12 lines
233 B
Python
12 lines
233 B
Python
import subprocess
|
|
|
|
# Jalankan app.py
|
|
p1 = subprocess.Popen(["python", "this.py"])
|
|
|
|
# Jalankan main.py
|
|
p2 = subprocess.Popen(["python", "main1.py"])
|
|
|
|
# Tunggu keduanya selesai (opsional, biasanya biarkan berjalan)
|
|
p1.wait()
|
|
p2.wait()
|