12 lines
309 B
Python
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])
|
|
|