You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
388 B
Python

import os
import subprocess
import sys
# subprocess.run('npm --version', shell=True)
#
# subprocess.check_call('node --version', shell=True)
os.chdir('./client')
if sys.platform == 'win32':
npm_proc = subprocess.Popen('start cmd.exe /k "npm run serve"', shell=True)
wsgi_proc = subprocess.Popen('start cmd.exe /k "serve.exe "', shell=True)
sys.exit(0)
else:
sys.exit(1)