Python properties

The properties for the fortify-sca.properties file in the following table apply to the translation of Python code.

Property name Description

com.fortify.sca.PythonPath 

Specifies a semicolon-separated (Windows) or colon-separated (non-Windows) list of additional import directories. OpenText SAST does not respect PYTHONPATH environment variable that the Python runtime system uses to find import files. Use this property to specify the additional import directories.

Value type: String (path)

Default: (none)

Command-line option: -python-path

com.fortify.sca.PythonVersion 

Specifies the Python source code version to scan. The valid values are 2 and 3.

Value type: Number

Default: 3

Command-line option: -python-version

com.fortify.sca.PythonNoAutoRootCalculation 

If set to true, disables the automatic calculation of a common root directory of all project files to use for importing modules and packages For more details, see Including Imported Modules and Packages.

Value type: Boolean

Default: false

Command-line option: -python-no-auto-root-calculation

com.fortify.sca.DjangoTemplateDirs 

Specifies semicolon-separated (Windows) or colon-separated (non-Windows) list of directories for Django templates. OpenText SAST does not use the TEMPLATE_DIRS setting from the Django settings.py file.

Value type: String (paths)

Default: (none)

Command-line option: -django-template-dirs

com.fortify.sca.DjangoDisableAutodiscover 

Specifies that OpenText SAST does not automatically discover Django templates.

Value type: Boolean

Default: (none)

Command-line option: -django-disable-autodiscover

com.fortify.sca.JinjaTemplateDirs 

Specifies semicolon-separated (Windows) or colon-separated (non-Windows) list of directories for Jinja2 templates.

Value type: String (paths)

Default: (none)

Command-line option: -jinja-template-dirs

com.fortify.sca.DisableTemplateAutodiscover

Specifies that OpenText SAST does not automatically discover Django or Jinja2 templates.

Value type: Boolean

Default: (none)

Command-line option: -disable-template-autodiscover

Translating Python Code