[issue31741] backports import path can not be overridden in Windows (Linux works fine)

Chris Caron report at bugs.python.org
Mon Oct 9 18:18:09 EDT 2017


Chris Caron <lead2gold at gmail.com> added the comment:

Thank you for replying so quickly;  the issue stems from a bug created here
which explains it a bit better:
https://github.com/caronc/nzb-notify/issues/27 (scroll to the bottom).

In my case, I had a lib\site-packages\backports in C:\Python27 that keeps
over-riding the one defined in the \MyLibraries path. But even when the
'sys.path' has been successfully overridden, the backports module (one i
provide for the package of interest) keeps reverting to the
C:\Python27\lib\site-packages\ path.  It actually just throws an exception
that the module doesn't exist (when ordering of paths would say it does).

To answer your other question: I got the installer from here:
https://www.python.org/downloads/release/python-2713/ (the MSI 64 bit
installer - second from the bottom)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31741>
_______________________________________


More information about the Python-bugs-list mailing list