Virtualenv's bin/activate is Doing It Wrong
gist.github.com
Virtualenv's bin/activate is Doing It Wrong
1–10 of 31 posts
Re: Virtualenv's bin/activate is Doing It Wrong
#2Re: Virtualenv's bin/activate is Doing It Wrong
#3Re: Virtualenv's bin/activate is Doing It Wrong
#4Also, I don't like the prospect of having to hit Ctrl-D twice to logout.
Re: Virtualenv's bin/activate is Doing It Wrong
#5Reading the Google Groups responses, he's officially created a http://xkcd.com/1172/ situation heh
https://groups.google.com/d/topic/python-virtualenv/XzI8GStv...
Re: Virtualenv's bin/activate is Doing It Wrong
#6But what will be the added CO2 footprint of launching so many unnecessary shells! Also, I don't like the prospect of having to hit Ctrl-D twice to logout.
Re: Virtualenv's bin/activate is Doing It Wrong
#7But what will be the added CO2 footprint of launching so many unnecessary shells! Also, I don't like the prospect of having to hit Ctrl-D twice to logout.
Then type 'exec inve' instead of just 'inve.'
Re: Virtualenv's bin/activate is Doing It Wrong
#8Re: Virtualenv's bin/activate is Doing It Wrong
#9The fact that it does not use a subshell makes it useful. You can trivially use it in bash scripts and cronjobs.
#!/usr/bin/virtual-bash my-env
echo hello
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.Re: Virtualenv's bin/activate is Doing It Wrong
#10The fact that it does not use a subshell makes it useful. You can trivially use it in bash scripts and cronjobs.
Why can you not do?: #!/usr/bin/virtual-bash my-env echo hello 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.