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 AndreasPK
Recipients AndreasPK
Date 2018-07-12.15:06:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531407971.94.0.56676864532.issue34103@psf.upfronthosting.co.za>
In-reply-to
Content
Andi@Horzube MINGW64 ~/tmp
$ python3.7 ../pyTest.py
['', 'C:/ghc/msys64/mingw64/lib/python37.zip', 'C:/ghc/msys64/home/Andi/tmp', 'C:/ghc/msys64/mingw64/lib/python3.7', 'C:/ghc/msys64/mingw64/bin', 'C:/ghc/msys64/mingw64/lib/python3.7/lib-dynload', 'C:/ghc/msys64/mingw64/lib/python3.7/site-packages']

Andi@Horzube MINGW64 ~/tmp
$ python3.6 ../pyTest.py
['/home/Andi', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/lib/python3.6/site-packages']

Ignore the path prefix differences, they comes from slight differences how I installed these two versions.

3.6 lists '/home/Andi', path of the script
3.7 lists /home/Andi/tmp , path of cwd

This breaks existing code looking for files (imports primarily) relative to a scripts path.
If a file is placed in the right relative path to cwd it will be picked up over the intended file.

This should be at least mentioned in breaking changes.
History
Date User Action Args
2018-07-12 15:06:11AndreasPKsetrecipients: + AndreasPK
2018-07-12 15:06:11AndreasPKsetmessageid: <1531407971.94.0.56676864532.issue34103@psf.upfronthosting.co.za>
2018-07-12 15:06:11AndreasPKlinkissue34103 messages
2018-07-12 15:06:11AndreasPKcreate