Non-unique dirs in sys.path

Gisle Vanem gvanem at yahoo.no
Fri Jan 9 16:24:43 EST 2015


Ian Kelly wrote:

> I checked my own Python 2.7 installation and discovered that I have
> the same problem, although without the different casing. Perusing the
> .pth files in site-packages turns up setuptools.pth, which just
> contains the site-packages path. Removing that file solves the issue
> for me.

That was the case here too! Deleted my setuptools.pth and the "problem"
was gone. It would be nice to know how these .pth files are involved in
extending the 'sys.path[]'. Who does that and how? Any good reference on
that?

-- 
--gv



More information about the Python-list mailing list