[Fab-user] Generic prefix context manager?

2009-07-07 Thread Matthew Wilson
Since I use a virtualenv on my servers, before I run python zzz.py, I need to activate the virtualenv. So I'm doing this right now: run(source /home/matt/virtualenvs/foo/bin/activate python zzz.py) I read through how fabric.context_managers.cd works. It seems to set a key in the env

Re: [Fab-user] Generic prefix context manager?

2009-07-07 Thread Matthew Wilson
On Tue, Jul 7, 2009 at 6:33 PM, Jeff Forcierj...@bitprophet.org wrote: Hi Matt, This is definitely on the TODO: make a generic prefix context manager (and then rework 'cd' to use that) which is capable of prefixing any arbitrary string. It'll be in for 1.0 for sure, and probably enter master

Re: [Fab-user] Generic prefix context manager?

2009-07-07 Thread Jorge Vargas
On Tue, Jul 7, 2009 at 5:37 PM, Matthew Wilsonm...@tplus1.com wrote: Since I use a virtualenv on my servers, before I run python zzz.py, I need to activate the virtualenv.  So I'm doing this right now:    run(source /home/matt/virtualenvs/foo/bin/activate python zzz.py) I read through how