import subprocess import sys # sys.executable to use the same Python interpreter used to invoke this command subprocess.check_call([sys.executable, "python_sccd_compiler/sccdc.py", "-p", "threads", "server.xml"], cwd="hybrid_server") subprocess.call([sys.executable, "run_mvk_server.py", sys.argv[1]], cwd="hybrid_server")