[Tutor] python console, IDLE startup scripts

Brian van den Broek bvande at po-box.mcgill.ca
Mon Mar 21 23:42:56 CET 2005


Marcus Goldfish said unto the world upon 2005-03-21 17:06:
> Is there a special startup script the command-line python IDE and/or
> IDLE use?  As per Liam's response to my previous post, I would like to
> use os.walk() to automatically set my sys.path() variable...
> 
> Marcus
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 

Hi Marcus,

I've not done so myself, but you can put custom initialization code 
into a module named sitecustomize.py. See 
<http://www.python.org/doc/2.4/lib/module-site.html> for more details.

Best,

Brian vdB



More information about the Tutor mailing list