1234567891011121314 |
- import subprocess
- import sys
- # sys.executable to use the same Python interpreter used to invoke this command
- if len(sys.argv) < 2:
- port = "8001"
- subprocess.check_call([sys.executable, "-m", "sccd.compiler.sccdc", "-p", "threads", "server.xml"], cwd="hybrid_server")
- subprocess.call([sys.executable, "run_mvk_server.py", port], cwd="hybrid_server")
- # Additional ways of calling...
- #subprocess.call([sys.executable, "run_mvk_server.py", port] + ["--kernel=baseline-jit"], cwd="hybrid_server")
- #subprocess.call([sys.executable, "-m", "cProfile", "-s", "tottime", "run_mvk_server.py", port], cwd="hybrid_server", stdout=open("/tmp/stdout", 'w'), stderr=open("/tmp/stderr", "w"))
|