first commit
This commit is contained in:
11
jalankan.py
Normal file
11
jalankan.py
Normal file
@ -0,0 +1,11 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user