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 LordBlick
Recipients LordBlick
Date 2015-07-19.14:26:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437315993.36.0.280874267638.issue24670@psf.upfronthosting.co.za>
In-reply-to
Content
The use of methods path.chdir () corrupts the subsequent ability to detect the file path which is interpreted.
I've made simple example, which is atached:
$ cd ~/tmp
$ ./test_os_path.py 
abspath:        ~/tmp/test_os_path.py
weak abspath:   ~/tmp/test_os_path.py
realpath:       ~/tmp/subtemp/test_os_path.py
weak realpath:  ~/tmp/subtemp/test_os_path.py
$ cd /usr
$ ~/tmp/test_os_path.py
abspath:        ~/tmp/test_os_path.py
weak abspath:   ~/tmp/test_os_path.py
realpath:       ~/tmp/subtemp/test_os_path.py
weak realpath:  ~/tmp/subtemp/test_os_path.py
$ cd ~
$ tmp/test_os_path.py
abspath:        ~/tmp/test_os_path.py
weak abspath:   ~/tmp/tmp/test_os_path.py
realpath:       ~/tmp/subtemp/test_os_path.py
weak realpath:  ~/tmp/tmp/test_os_path.py
History
Date User Action Args
2015-07-19 14:26:33LordBlicksetrecipients: + LordBlick
2015-07-19 14:26:33LordBlicksetmessageid: <1437315993.36.0.280874267638.issue24670@psf.upfronthosting.co.za>
2015-07-19 14:26:33LordBlicklinkissue24670 messages
2015-07-19 14:26:33LordBlickcreate