I don't know about idle, but the "real" python supports the PYTHONSTARTUP environment variable. PYTHONSTARTUP If this is the name of a readable file, the Python commands in that file are executed before the first prompt is displayed in interactive mode. The file is executed in the same name space where interactive commands are executed so that objects defined or imported in it can be used without qualification in the interactive session. You can also change the prompts sys.ps1 and sys.ps2 in this file.
Jeff
pgpqil4r6wyiw.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list