2 ms·
Not wrong, but if you're just running a program under a virtualenv (as opposed to doing shell work), just: /path/to/env/bin/python main.py will suffice. No n
by ibejoeb 14y ago
Not wrong, but if you're just running a program under a virtualenv (as opposed to doing shell work), just:
/path/to/env/bin/python main.py
will suffice. No need to create a separate shell script, start a new shell, and activate. Great for cronjobs.