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


Groups > comp.lang.python > #83475

Re: Non-unique dirs in sys.path

Path csiph.com!usenet.pasdenom.info!news.albasani.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.055
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'that?': 0.05; 'imported': 0.09; 'python': 0.11; 'jan': 0.12; '2.7': 0.14; 'path.': 0.16; 'subject:Non': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'module': 0.19; 'installation': 0.23; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; 'extending': 0.31; 'file': 0.32; 'checked': 0.32; 'url:python': 0.33; 'fri,': 0.33; 'received:google.com': 0.35; 'url:org': 0.36; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'issue': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'ian': 0.60; 'removing': 0.60; 'different': 0.65; 'here': 0.66; 'discovered': 0.83; '2015': 0.84; 'gone.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=L8TL65dKuHUlUpXVDhnmeP6IAQhLpvoKT4OOA4jsFpw=; b=dS3KLfi29fGJkeSChNtrP1PMblyYRL+vVJDjNPnlMeoEC95X9z8G/hK9AHPQvxgrTl 2avOpiFqroJpBb9xApCaWQj8dTQMpSFFLaLm3IM4Qtt3rAorNWkC2GYobmy6hoNqozhe NOhn+yjqyn8v5H0sUz0jc4p7JAEkKYFazKf9EozA8beiE8/Zdcm26khOT6bX/AENskuI ylmWhgZQlUkJGnGznJDV+f/zxfd1bDY7BhRDSssHoBeItqvsM5d9P8g6V+3J1afE/pbx Mlk72UJulOJY53hkLTo9C1GKHxOv4dlUfO7wPpGWLJ3rInoB4Z9ZONsMJ+ccBw0/Ba9V vnfw==
X-Received by 10.68.130.4 with SMTP id oa4mr27078390pbb.95.1420843835082; Fri, 09 Jan 2015 14:50:35 -0800 (PST)
MIME-Version 1.0
In-Reply-To <54B0471B.7010605@yahoo.no>
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 Fri, 9 Jan 2015 15:49:54 -0700
Subject Re: Non-unique dirs in sys.path
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.17546.1420843838.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1420843838 news.xs4all.nl 2903 [2001:888:2000:d::a6]:57332
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:83475

Show key headers only | 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