This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author StreakyCobra
Recipients StreakyCobra
Date 2017-02-23.18:49:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487875774.14.0.770574732307.issue29635@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-02-23 18:49:34StreakyCobrasetrecipients: + StreakyCobra
2017-02-23 18:49:34StreakyCobrasetmessageid: <1487875774.14.0.770574732307.issue29635@psf.upfronthosting.co.za>
2017-02-23 18:49:34StreakyCobralinkissue29635 messages
2017-02-23 18:49:33StreakyCobracreate