Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.63 KB

CONFIGURING.md

File metadata and controls

45 lines (31 loc) · 1.63 KB

Configuring

To define a variable, define it as you would if you were declaring a define in a GCC/Clang invocation (i.e.-D${NAME}=${VALUE}).

Global Options

Name Description
ipsd_port The port to host the REST server on.
ipsd_enable_python Enable Python language support. Requires libPython.

Python Options

Name Description
ipsd_py_venv PYTHONHOME is set to this in the runner process, if isolated.
ipsd_py_venv_isolated If the Python virtual environment is completely isolated.
ipsd_py_venv_site PYTHONPATH is set to this in the runner process.

ipsd_py_venv

  • If the value is non-empty, the script execution environment will use the specified virtual environment.

  • The PYTHONHOME environment variable is set to the path of the virtual environment if IPSD_PY_VENV_ISOLATED is true.

ipsd_py_venv_isolated

  • When set to a non-zero value, the PYTHONHOME environment variable is set to IPSD_PY_VENV. This effectively isolates the virtual environment from the system Python installation.

  • Isolated mode ensures the script runs strictly within the virtual environment without referencing the global Python setup.

ipsd_py_venv_site

  • This path is set as the PYTHONPATH environment variable to ensure the Python interpreter can locate the installed packages in the virtual environment.

  • If IPSD_PY_VENV is empty (no virtual environment is configured), the directory is manually added to the Python sys.path at runtime using the sys.path.insert method.