Message182523
| 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. |
|