Message108822
os.chdir(path) is often used with os.getcwd() call and doesn't return anything. It can return the name of the directory before the change.
prev = os.chdir(path)
...
os.chdir(prev)
Maybe it will also be possible to implement 'with' construct:
with os.chdir(path):
... |
|
Date |
User |
Action |
Args |
2010-06-28 11:43:29 | techtonik | set | recipients:
+ techtonik |
2010-06-28 11:43:29 | techtonik | set | messageid: <1277725409.82.0.324179081421.issue9097@psf.upfronthosting.co.za> |
2010-06-28 11:43:28 | techtonik | link | issue9097 messages |
2010-06-28 11:43:27 | techtonik | create | |
|