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)