mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-05-20 07:39:35 +05:00
initial commit
This commit is contained in:
commit
90d8422b81
22 changed files with 1296 additions and 0 deletions
19
dev.py
Normal file
19
dev.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
import subprocess
|
||||
import time
|
||||
import os
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
environment = os.environ.copy()
|
||||
|
||||
gui_proc = subprocess.Popen(["bun", "run", "dev"], cwd="./gui", shell = True)
|
||||
app_proc = subprocess.Popen(["python", "main.py"], cwd="./src", shell = True)
|
||||
|
||||
try:
|
||||
while gui_proc.poll() is None or app_proc is None:
|
||||
time.sleep(0.1)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
gui_proc.terminate()
|
||||
app_proc.terminate()
|
||||
print("Processed Terminated")
|
Loading…
Add table
Add a link
Reference in a new issue