Python/IDLE startup

Gregor Lingl glingl at aon.at
Thu Oct 3 05:12:11 EDT 2002


Martin v. Loewis schrieb:
> Gregor Lingl <glingl at aon.at> writes:
> 
> 
>>1. What means do I have to get
>>certain names from certain modules
>>imported automatically at startup of
>>     a) IDLE
>>     b) the commandline Python interpreter?
> 
> 
> You need to set an environment variable PYTHONSTARTUP which points to
> a Python file.
> 


This works fine with the commandline interpreter, but
it doesn't work with IDLE.

What can I do to make it work with IDLE also?
Gregor



>>2. What means do I have to get (a) certain module(s) executed
>>automatically at startup?
> 
> 
> You add it to sitecustomize.py.
> 
> Regards,
> Martin





More information about the Python-list mailing list