Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83475

Re: Non-unique dirs in sys.path

References <54AFD43F.5040100@yahoo.no> <CALwzidn-TL1kazJVmeKOxjS54G-9xRfS3yZ+0qD+kyBMD0K-kg@mail.gmail.com> <54B0471B.7010605@yahoo.no>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2015-01-09 15:49 -0700
Subject Re: Non-unique dirs in sys.path
Newsgroups comp.lang.python
Message-ID <mailman.17546.1420843838.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Jan 9, 2015 at 2:24 PM, Gisle Vanem <gvanem@yahoo.no> wrote:
> 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?

The automatically imported site module processes the .pth files.

https://docs.python.org/2/library/site.html

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Non-unique dirs in sys.path Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-09 15:49 -0700

csiph-web