htdocs/node/run.py
2024-11-19 17:07:11 +00:00

12 lines
309 B
Python

import subprocess
# Path to a Python interpreter that runs any Python script
# under the virtualenv /path/to/virtualenv/
python_bin = "/home/max/venv/bin/activate"
# Path to the script that must run under the virtualenv
script_file = "/home/max/maths/maths.py"
subprocess.Popen([python_bin, script_file])