Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.de!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.046 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'python': 0.08; 'message- id:@glegroupsg2000goo.googlegroups.com': 0.09; 'reply- to:addr:comp.lang.python': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.16; "wouldn't": 0.17; 'cc:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'guess': 0.26; 'subject: .': 0.29; 'cc:addr:python.org': 0.30; 'it?': 0.33; 'header:User-Agent:1': 0.34; '(as': 0.34; 'using': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'why': 0.39; 'header :Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.71; 'order,': 0.73; 'reply-to:addr:googlegroups.com': 0.74 Newsgroups: comp.lang.python Date: Sat, 27 Aug 2011 15:49:44 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=216.99.216.115; posting-account=yMP7kQoAAAAXsyJyvL-3qYVslbdYOSQP References: <31bef8dc-d804-454d-85c7-8de1663052a8@glegroupsg2000goo.googlegroups.com> <2763f908-2feb-4d2f-b422-433de26b2868@glegroupsg2000goo.googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: Understanding .pth in site-packages From: Josh English To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: comp.lang.python@googlegroups.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 1 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314485386 news.xs4all.nl 2544 [2001:888:2000:d::a6]:60173 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12312 When I run: os.listdir('c:\Python27\lib\site-packages') I get the contents in order, so the folders come before .pth files (as nothing comes before something.) I would guess Python is using os.listdir. Why wouldn't it?