[issue12648] Wrong import module search order on Windows

Nick Coghlan report at bugs.python.org
Sat Jul 30 18:07:41 CEST 2011


Nick Coghlan <ncoghlan at gmail.com> added the comment:

It's actually the documentation that's slightly wrong in this case. On Windows, there is an additional import mechanism based on the Windows registry that is checked before the ordinary sys.path mechanism. (See http://docs.python.org/library/pkgutil#pkgutil.iter_importers)

The easiest way to check if this is happening is to see which version of the code is executed by "python -m parser". If I'm right, that will execute the local parser.py file on both Linux and Windows.

----------

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


More information about the Python-bugs-list mailing list