[issue9790] ntpath contains imports inside functions

Brian Curtin report at bugs.python.org
Fri Sep 24 01:50:18 CEST 2010


Brian Curtin <curtin at acm.org> added the comment:

Nick noticed another issue with this, and it actually won't work on pre-Vista versions since we load GetFinalPathNameByHandle at runtime, which is why we had that NotImplementedError.

Attaching a patch which should handle this. We only try the import on Windows 6.0 or above now, and otherwise (XP, other OS'es) use the fallback method.

----------
keywords: +patch
nosy: +ncoghlan
resolution: fixed -> 
stage: committed/rejected -> patch review
status: closed -> open
Added file: http://bugs.python.org/file18985/issue9790_fix.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9790>
_______________________________________


More information about the Python-bugs-list mailing list