Re:Virtualenv's bin/activate is Doing It Wrong
by cabalamat on Wednesday February 27, 2013 @12:24PM
(#5293526)
The approach i use is simply:
Is this wrong? If so, what would work better?
[ Parent
| on HN ]
Re:Virtualenv's bin/activate is Doing It Wrong
by ibejoeb on Wednesday February 27, 2013 @12:33PM
(#5293582)
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.