<h2>25.5.4. Startup and code execution<aclass="headerlink"href="#startup-and-code-execution"title="Permalink to this headline">¶</a></h2>
<h2>25.5.3. Startup and code execution<aclass="headerlink"href="#startup-and-code-execution"title="Permalink to this headline">¶</a></h2>
<p>Upon startup with the <ttclass="docutils literal"><spanclass="pre">-s</span></tt> option, IDLE will execute the file referenced by
<p>Upon startup with the <ttclass="docutils literal"><spanclass="pre">-s</span></tt> option, IDLE will execute the file referenced by
the environment variables <spanclass="target"id="index-5"></span><ttclass="xref std std-envvar docutils literal"><spanclass="pre">IDLESTARTUP</span></tt> or <spanclass="target"id="index-6"></span><aclass="reference internal"href="../using/cmdline.html#envvar-PYTHONSTARTUP"><ttclass="xref std std-envvar docutils literal"><spanclass="pre">PYTHONSTARTUP</span></tt></a>.
the environment variables <spanclass="target"id="index-5"></span><ttclass="xref std std-envvar docutils literal"><spanclass="pre">IDLESTARTUP</span></tt> or <spanclass="target"id="index-6"></span><aclass="reference internal"href="../using/cmdline.html#envvar-PYTHONSTARTUP"><ttclass="xref std std-envvar docutils literal"><spanclass="pre">PYTHONSTARTUP</span></tt></a>.
IDLE first checks for <ttclass="docutils literal"><spanclass="pre">IDLESTARTUP</span></tt>; if <ttclass="docutils literal"><spanclass="pre">IDLESTARTUP</span></tt> is present the file
IDLE first checks for <ttclass="docutils literal"><spanclass="pre">IDLESTARTUP</span></tt>; if <ttclass="docutils literal"><spanclass="pre">IDLESTARTUP</span></tt> is present the file
...
@@ -487,7 +468,7 @@ looked for in the user’s home directory. Statements in this file will be
...
@@ -487,7 +468,7 @@ looked for 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
executed in the Tk namespace, so this file is not useful for importing
functions to be used from IDLE’s Python shell.</p>
functions to be used from IDLE’s Python shell.</p>
<divclass="section"id="command-line-usage">
<divclass="section"id="command-line-usage">
<h3>25.5.4.1. Command line usage<aclass="headerlink"href="#command-line-usage"title="Permalink to this headline">¶</a></h3>
<h3>25.5.3.1. Command line usage<aclass="headerlink"href="#command-line-usage"title="Permalink to this headline">¶</a></h3>