Message288468
The previous example (sorry, first time using this platform, I'm a little bit messy here), shows that `os.chdir` resolves symlinks by default, as opposed to what `cd` does in bash. This means it is not possible to change the directory to a symlink folder.
A solution would be a keyword argument in `os.chdir` and `os.getcwd` that would mimic the `-P` and `-L` arguments of `cd` and `pwd`, like:
os.chdir(logical=False) # or follow_symlinks=True maybe
os.getcwd(logical=False)
I don't know what should be the default values for these args, but at least having an option to change the behavior would be nice. |
|
Date |
User |
Action |
Args |
2017-02-23 18:49:34 | StreakyCobra | set | recipients:
+ StreakyCobra |
2017-02-23 18:49:34 | StreakyCobra | set | messageid: <1487875774.14.0.770574732307.issue29635@psf.upfronthosting.co.za> |
2017-02-23 18:49:34 | StreakyCobra | link | issue29635 messages |
2017-02-23 18:49:33 | StreakyCobra | create | |
|