=== modified file 'Doc/library/idle.rst' --- Doc/library/idle.rst 2009-01-03 21:18:54 +0000 +++ Doc/library/idle.rst 2009-03-10 17:46:34 +0000 @@ -252,6 +252,12 @@ stdin black +Startup +------- + +Upon startup with the -s option, IDLE will execute the file referenced by the environment variables ``IDLESTARTUP`` or ``PYTHONSTARTUP``. Idle first checks for ``IDLESTARTUP`` if ``IDLESTARTUP`` is present the file referenced is run. If ``IDLESTARTUP`` is not present Idle checks for ``PYTHONSTARTUP``. Files referenced by these variables are convenient places to store functions that are used frequently from the Idle shell. Or for executing import statements to import common modules. + +In addition, ``Tk`` also loads a startup file if it is present. Note that the Tk file is loaded unconditionally. This additional file is ``.Idle.py`` and is found in the user's home directory. Statements in this file will be executed in the Tk namespace, so this file is not useful for importing functions to be used from the Python shell. Command line usage ^^^^^^^^^^^^^^^^^^