fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] Setting cwd on open_shell


From: Jorge Vargas
Subject: [Fab-user] Setting cwd on open_shell
Date: Wed, 6 Jun 2012 00:18:09 -0400

Hi,

Is there a better way of doing this?

def shell():
    with cd('apps'):
        with cd(PROJ_CODE):
            open_shell("cd %s" % env.cwd)

I'm thinking that perhaps open_shell should use env.cwd as a default parameter to cd into. As you may want to get a shell to the exact location where your script is right now.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]