Windows: setting title of console window

Ethan Furman ethan at stoneleaf.us
Sat Jul 30 21:05:17 CEST 2011


Chris Angelico wrote:
> On Sat, Jul 30, 2011 at 7:39 PM, Ethan Furman <ethan at stoneleaf.us> 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~










More information about the Python-list mailing list