fab-user
[Top][All Lists]
Advanced

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

[Fab-user] lcd seems broken


From: Paul Hoffman
Subject: [Fab-user] lcd seems broken
Date: Tue, 29 Sep 2015 11:14:40 -0700

...but maybe it is just me.

print(os.getcwd())
with lcd("/usr/bin"):
  print(os.getcwd())

...prints the same location name twice, and it is clear that the cd didn't happen.

print(os.getcwd())
with lcd("/does/not/exist"):
  print(os.getcwd())

...prints the same location name twice. lcd doesn't throw an error, which I would have thought it would.

Is this what is expected?

--Paul Hoffman

reply via email to

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