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 gvanrossum
Recipients gvanrossum, kristjan.jonsson, ncoghlan, ned.deily, neologix, schmir
Date 2013-04-05.15:07:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365174453.5.0.990022129178.issue17639@psf.upfronthosting.co.za>
In-reply-to
Content
Do not "fix" this. It is an intentional feature.

There is a common pattern where one or more Python scripts are collected in some "bin" directory (presumably on the user's $PATH) as symlinks into the directory where they really live (not on $PATH, nor on sys.path). The other files needed by the script(s) are in the latter directory, and so it needs to be on sys.path[0]. If you change the symlink resolution, sys.path[0] will point to the "bin" directory and the scripts won't be able to find the rest of their modules.

While there are probably better patterns to solve the problem that this intends to solve, the pattern is commonly used and I do not want it to be broken.

If you are using symlinks for other purposes, well, too bad.
History
Date User Action Args
2013-04-05 15:07:33gvanrossumsetrecipients: + gvanrossum, ncoghlan, kristjan.jonsson, schmir, ned.deily, neologix
2013-04-05 15:07:33gvanrossumsetmessageid: <1365174453.5.0.990022129178.issue17639@psf.upfronthosting.co.za>
2013-04-05 15:07:33gvanrossumlinkissue17639 messages
2013-04-05 15:07:33gvanrossumcreate