Fix for Python library path problem

Jason Azze jason at azze.org
Wed Sep 27 20:54:56 UTC 2017


On Wed, Sep 27, 2017 at 4:19 PM, Eric S. Raymond via devel
<devel at ntpsec.org> wrote:

> Just to be sure, though, people with access to other platforms - like Red Hat
> and FreeBSD - should run these checks in Python
>
>>>> [x for x in sys.path if x.find('/usr/lib') != -1]
>
>>>> [x for x in sys.path if x.find('/usr/lib') != -1 and x.replace('/usr/lib', '/usr/local/lib') == -1]
>
> If the second one ever comes up non-empty we could have a problem.

I checked CentOS 6.9 and CentOS 7.3 and, after I figured out I had to
import sys, I can confirm that the second expression comes back empty.


More information about the devel mailing list