[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Making env changes persistent to the current session?
From: |
Jeff Forcier |
Subject: |
Re: [Fab-user] Making env changes persistent to the current session? |
Date: |
Sun, 27 Nov 2011 12:46:08 -0800 |
Hi Jorge,
On Thu, Nov 24, 2011 at 2:34 PM, Jorge Vargas <address@hidden> wrote:
> Hi,
>
> I was wondering if this is possible. I want something like this.
>
> def activate():
> local('source env/bin/activate')
You'll need to use prefix() for this, it's in the context managers API docs:
http://docs.fabfile.org/en/1.3.3/api/core/context_managers.html#fabric.context_managers.prefix
As for why, see this FAQ:
http://docs.fabfile.org/en/1.3.3/faq.html#my-cd-workon-export-etc-calls-don-t-seem-to-work
Best,
Jeff
--
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org