Re:Virtualenv's bin/activate is Doing It Wrong
by IgorPartola on Wednesday February 27, 2013 @07:25AM
(#5291978)
Why can you not do?:
Edit: in fact something like /usr/bin/virt-python my-env is much nicer than /var/lib/my-app/env/bin/python. Basically like virtualenvwrapper but for Python scripts that are not run interactively.
[ Parent
| on HN ]
Re:Virtualenv's bin/activate is Doing It Wrong
by the_mitsuhiko on Wednesday February 27, 2013 @07:33AM
(#5292015)
I regularly write scripts that involve more than one virtualenv. At the moment this is trivial by just activating and deactivating envs from one script. Starting subshells is complicated because communication into the shell barely exists. Worse than that is that the shebang only supports two arguments and is heavily length limited.
Re:Virtualenv's bin/activate is Doing It Wrong
by IgorPartola on Wednesday February 27, 2013 @08:02AM
(#5292094)
Unless you are rapidly switching envs, you could launch the parts of your scripts that operate on different envs as subscripts. Then you can pipe data in and out. Can you provide an example where this does not work?
Point taken on the shebang limitations.