[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] Cannot change directory with a variable (worked with 0.9.x)
From: |
Sebastien Douche |
Subject: |
[Fab-user] Cannot change directory with a variable (worked with 0.9.x) |
Date: |
Tue, 2 Aug 2011 10:41:36 +0200 |
Hi,
With 1.x release, I cannot change directory.A stupid code example:
----------
list = run('ls -1 %s' % path).split('\n')
for repos in list:
url = os.path.join(path, repos)
print "url: %s" % url
with cd(url):
run('ls')
----------
Results:
url: /srv/git/main/buildouts.git
run: ls
out: : No such file or directory/git/main/buildouts.git
If I write "/srv/git/main/buildouts.git" instead of url, it works.
Same results with a run('cd %s && ls' % url).
I'm a bit lost.
--
Sebastien Douche <address@hidden>
Twitter : @sdouche
- [Fab-user] Cannot change directory with a variable (worked with 0.9.x),
Sebastien Douche <=