I don't know about idle, but the "real" python supports the PYTHONSTARTUP environment variable.
I just tried it - IDLE ignores PYTHONSTARTUP, as does PythonWin (I just started using PYTHONSTARTUP to switch the standard prompt from '>>>' to "Py>').
I believe PYTHONSTARTUP is handled by CPython's main function before it gets to the interactive interpreter.
Cheers, Nick.
-- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://boredomandlaziness.skystorm.net -- http://mail.python.org/mailman/listinfo/python-list