Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cool.': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'manipulation': 0.09; 'message- id:@stoneleaf.us': 0.09; 'received:gator410.hostgator.com': 0.09; 'subject:setting': 0.09; '~ethan~': 0.09; 'wrote:': 0.15; 'bootstrap': 0.16; 'explanation': 0.16; 'such.': 0.16; 'there...': 0.16; 'yup': 0.16; 'cc:addr:python-list': 0.16; 'pm,': 0.16; 'subject:Windows': 0.19; '(like': 0.21; 'cc:2**0': 0.21; 'modify': 0.22; 'primarily': 0.22; 'cc:no real name:2**0': 0.22; 'header:In- Reply-To:1': 0.22; 'stuff': 0.22; 'assume': 0.23; 'suspect': 0.25; 'later': 0.26; 'random': 0.28; 'sat,': 0.28; 'bit': 0.28; "didn't": 0.29; 'object': 0.30; 'cc:addr:python.org': 0.30; 'yet': 0.30; 'chris': 0.32; 'tend': 0.32; 'setting': 0.32; 'does': 0.32; 'header:User-Agent:1': 0.34; 'then.': 0.35; 'subject:: ': 0.38; 'posts': 0.38; 'something': 0.38; 'else': 0.38; 'basic': 0.39; 'your': 0.60; 'link': 0.63; 'received:websitewelcome.com': 0.65; 'received:184': 0.67; 'received:69.56': 0.73; '30,': 0.74; 'clicking': 0.83; 'received:gateway15.websitewelcome.com': 0.84 Date: Sat, 30 Jul 2011 12:05:17 -0700 From: Ethan Furman User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Chris Angelico Subject: Re: Windows: setting title of console window References: <4E343E1C.90807@stoneleaf.us> <4E344FCB.7030801@stoneleaf.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: c-67-170-168-84.hsd1.or.comcast.net ([192.168.74.5]) [67.170.168.84]:3157 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 1 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== Cc: python-list@python.org 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: 1312052785 news.xs4all.nl 23923 [2001:888:2000:d::a6]:42725 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10598 Chris Angelico wrote: > On Sat, Jul 30, 2011 at 7:39 PM, Ethan Furman wrote: >> Well, you /could/ have followed the link and read the explanation there... >> ;) > > I tend to avoid clicking random links in posts :) Ah -- I understand. >> How it works: since the sys.argv object does yet exist... > > That's the bit I didn't understand. I assume that's just the way it > is, then. Your cool trick is primarily because something else will > later modify sys.argv... and as such. it is indeed very cool. Yup -- I suspect sitecustomize is primarily intended for path manipulation and as such happens before a lot of other basic bootstrap stuff (like setting sys.argv). ~Ethan~