Python Path Configuration

PyScripter

Python Path Configuration
Previous Top Next

This feature allows the configuration of the Python Path of the embedded Python interpreter. It is accessible from the Tools menu or the context menu of the File Explorer.  It pops-up the following dialog:
graphic

Pressing the Add.. button shows a directory selection dialog from which can select a directory to add to the path.  The Modify button replaces the selected directory with one chosen using the directory selection dialog.

Tip:  You can rearrange the order of the directories by dragging and dropping.

Note that the changes to the Python path apply only to the current session.  To permanently change the Python path you can either modify the PYTHONPATH environment variable or modify the HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\x.y\PythonPath registry setting.  You can also use the PyScripter startup script python_init.py to modify the path.