Python Shell Environment

Index of All Documentation » Wing Pro Reference Manual » Integrated Python Shell »


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.

The version of Python used in the Python Shell, and the environment it runs with, is configured in Project Properties from the Project menu, or by selecting a particular Launch Configuration in the Options menu. 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 ;