mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-09-07 15:03:57 +05:00
refactor: use shell=True on subproccess call only on nt systems
should fix linux usage
This commit is contained in:
parent
8baab91e60
commit
43d09314ff
4 changed files with 13 additions and 5 deletions
6
dev.py
6
dev.py
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import subprocess
|
||||
import time
|
||||
import os
|
||||
|
@ -13,10 +15,10 @@ if __name__ == "__main__":
|
|||
# TODO?: install node deps automatically
|
||||
|
||||
gui_proc = subprocess.Popen(
|
||||
["bun", "run", "dev"], cwd="./gui", env=environment, shell=True
|
||||
["bun", "run", "dev"], cwd="./gui", env=environment, shell=(os.name == "nt")
|
||||
)
|
||||
app_proc = subprocess.Popen(
|
||||
["python", "main.py"], cwd="./src", env=environment, shell=True
|
||||
["python", "main.py"], cwd="./src", env=environment, shell=(os.name == "nt")
|
||||
)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue