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.
_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to