Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'sys': 0.05; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; '(again,': 0.16; 'bieber': 0.16; 'declaimed': 0.16; 'egg': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'received:66.245': 0.16; 'received:dsl.mindspring.com': 0.16; 'received:mindspring.com': 0.16; 'received:wlfraed': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'yet.': 0.18; "haven't": 0.20; 'file,': 0.21; 'url:home': 0.21; '(just': 0.23; '-0700': 0.23; 'unsure': 0.23; 'aug': 0.24; 'preferred': 0.25; 'lee': 0.28; 'sat,': 0.28; 'import': 0.28; 'subject: .': 0.29; 'to:addr:python-list': 0.33; 'header:X-Complaints-To:1': 0.35; 'folder': 0.35; 'charset:us- ascii': 0.36; 'file': 0.36; 'open': 0.37; 'think': 0.38; 'received:org': 0.38; 'subject:: ': 0.39; 'files,': 0.39; 'header :Mime-Version:1': 0.39; 'session': 0.39; 'to:addr:python.org': 0.39; "it's": 0.40; 'order': 0.62; 'zip': 0.64; 'compressed': 0.68; 'strange': 0.68; 'dennis': 0.77; '(still': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Understanding .pth in site-packages Date: Sat, 27 Aug 2011 13:53:20 -0700 Organization: > Bestiaria Support Staff < References: <31bef8dc-d804-454d-85c7-8de1663052a8@glegroupsg2000goo.googlegroups.com> <2763f908-2feb-4d2f-b422-433de26b2868@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: user-11fb6hj.dsl.mindspring.com X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314478410 news.xs4all.nl 2547 [2001:888:2000:d::a6]:50789 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12299 On Sat, 27 Aug 2011 10:57:01 -0700 (PDT), Josh English declaimed the following in gmane.comp.python.general: > So I think the preferred search order is: > > 1. a folder in the site-packages directory > 2. an Egg file (still unsure why) > 3. A .pth file > > It's a strange juju that I haven't figured out yet. > .egg files, as I recall, are basically just ZIP compressed files -- and since Python can (again, as I recall) import from a ZIP compressed file, .egg files get added to sys.path (just open an interactive Python session and do import sys sys.path and review the results) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/