Skip to main content

This documentation is for an older version of this product. See the latest version of this content.Opens in a new tab

PythonPath

Specify directories containing alternative python packages.

Synopsis

[config]    PythonPath=directory

directory is one or more paths to valid directories. The maximum length for PythonPath is 1024 characters. By default, no directories listed.

Description

PythonPath specifies the location of alternative Python packages. When searching for packages, InterSystems IRIS features that use Python (such as the %Python Server) check the directories listed in PythonPath.

You may specify multiple directories. On Windows, separate multiple directories using a semicolon; on other platforms, use a colon to separate multiple directories.

Changing This Parameter

On the Advanced Memory page of the Management Portal (System Administration > Configuration > Additional Settings > Advanced Memory), in the PythonPath row, select Edit. Enter one or more directories.

Instead of using the Management Portal, you can change PythonPath in the Config.configOpens in a new tab class (as described in the class reference) or by editing the CPF in a text editor (as described in Editing the Active CPF).

When you edit this setting, it takes effect immediately. The new path is used for any new processes.

FeedbackOpens in a new tab