<type>documentation</type>
<domain>debug</domain>
<id>shell-environment</id>
<title>Python Shell Environment</title>
<date>$Date$</date>
<version>$Revision$</version>
<product>all</product>

Code typed, pasted, dropped, or otherwise entered into the ``Python Shell`` executes in a
separate Python process that is independent of the IDE and functions without regard to the
state of any running debug process.

~~~if WING101:
The version of Python used in the ``Python Shell``, and the environment it runs with, 
is configured using ``Configure Python`` in the ``Edit`` menu.
~~~

~~~if not WING101:
The version of Python used in the ``Python Shell``, and the environment it runs with, 
including initial working directory, is configured in `Project Properties
<ref:proj/project-properties>`__ from the ``Project`` menu, or by selecting a particular
`Launch Configuration <ref:proj/launch-configs>`__ from ``Use Environemnt`` in the
``Options`` menu.

~~~
~~~if WEBSITE:
In Wing 101, Python environment is instead specified with ``Configure Python`` in the 
``Edit`` menu.
~~~

To preload some code into the Python Shell when it is started, you can set the
``PYTHONSTARTUP`` environment variable to the full path of a Python file. Or, set
``PYTHONSTARTUP_CODE`` to execute a line of Python code, optionally with multiple
statements separated by ``;``

