2 ms·
Virtualenv tip: you can skip the Bash magic of calling "activate" by providing the path to the python executable. /hello/venvs/myproject/bin/python myscrip
by ProblemFactory 8y ago
Virtualenv tip: you can skip the Bash magic of calling "activate" by providing the path to the python executable.
/hello/venvs/myproject/bin/python myscript.py
will run myscript.py exactly as if the virtualenv was active, which is easier to configure for cron jobs and services.