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 jaraco
Recipients amaury.forgeotdarc, brian.curtin, jaraco, pitrou, python-dev, santoso.wijaya, tim.golden
Date 2013-02-20.15:47:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361375256.15.0.968107229811.issue13772@psf.upfronthosting.co.za>
In-reply-to
Content
I've started work on restoring the directory detection in my bitbucket repo (https://bitbucket.org/jaraco/cpython-issue13772). I have added a regression test to capture the basic failure (where the link is not created in the current working directory) as well as a fix. The fix uses the [Microsoft Shell Lightweight Utility Functions](http://msdn.microsoft.com/en-us/library/bb759844%28v=vs.85%29.aspx) which has one benefit of being tested and robust, but has two disadvantages, namely:

- it adds a link-time dependency.
- it doesn't support forward-slashes, which the reference implementation does, and which I believe the CPython implementation should.

Interestingly, it does detect the '/' character as a separator - it just doesn't treat it as one when stripping the trailing path.

Given these disadvantages, I'm inclined to write custom functions to support the directory detection. Any suggestions are appreciated.
History
Date User Action Args
2013-02-20 15:47:36jaracosetrecipients: + jaraco, amaury.forgeotdarc, pitrou, tim.golden, brian.curtin, santoso.wijaya, python-dev
2013-02-20 15:47:36jaracosetmessageid: <1361375256.15.0.968107229811.issue13772@psf.upfronthosting.co.za>
2013-02-20 15:47:36jaracolinkissue13772 messages
2013-02-20 15:47:35jaracocreate