Fix for Python library path problem
Eric S. Raymond
esr at thyrsus.com
Fri Sep 29 18:48:09 UTC 2017
Hal Murray <hmurray at megapathdsl.net>:
>
> devel at ntpsec.org said:
> > That's right. What we can do, though, is win under the following
> > assumption: if /usr/lib/X/Y/ is in sys.path, so is /usr/local/lib/X/Y/.
> > Look at this from my system:
>
> Bad assumption, at least on Fedora:
>
> Python 2.7.13 (default, Sep 5 2017, 08:53:59)
> [GCC 7.1.1 20170622 (Red Hat 7.1.1-3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> sys.path
> ['', '/usr/lib/python27.zip', '/usr/lib64/python2.7',
> '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk',
> '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload',
> '/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']
Yes. The approach in my last commit won't generalize.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.
More information about the devel
mailing list