Python/IDLE startup

Martin v. Loewis martin at v.loewis.de
Thu Oct 3 09:55:17 CEST 2002


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.

> 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