Python Search Path

Katana’s Python module search path is configured as follows, leaving the PYTHONPATH environment variable unchanged for child processes:

KATANA_INTERNAL_PYTHONPATH = KATANA_DEBUG_PRE_PYTHONPATH : <Katana internal Python paths> : PYTHONPATH and site customizations : KATANA_POST_PYTHONPATH

This allows Katana to initialize its environment safely, avoiding inadvertent loading of unsupported modules. You may add to the search path using Python site customizations or by setting the KATANA_POST_PYTHONPATH environment variable.

Additionally, the KATANA_DEBUG_PRE_PYTHONPATH environment is provided, for debugging purposes only, as it may lead to unexpected application behavior due to non-supported modules loading in place of the application's.

Note:  Changes to sys.path included in sitecustomize.py do not affect Katana internal Python paths.