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