Re:Show HN: Vex, a new way to run things in Python's virtual...
by shuzchen on Friday July 04, 2014 @03:24AM
(#7987734)
Similarly, anything you've installed in that virtualenv that installs itself in a bin folder (pip, mercurial, django-admin.py, etc) will be in that bin folder, and calling them from that directory will execute them in the context of that virtualenv as well.
Re:Show HN: Vex, a new way to run things in Python's virtual...
by sashahart on Friday July 04, 2014 @04:10AM
(#7987824)
Fully agreed, and the README for vex suggests this if you are worried about overhead from the wrapper especially for non-interactive purposes where you are repeatedly incurring python startup.
If you provide the full path to the python binary in the virtualenv, it executes with the virtualenv loaded:
This is useful for crontabs, system service config, etc. which don't load a regular user's bash setup files.