Python properties
The properties for the fortify-sca.properties file in the following table apply to the translation of Python code.
| Property name | Description |
|---|---|
|
|
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: |
|
|
Specifies the Python source code version to scan. The valid values are Value type: Number Default: Command-line option: |
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: Command-line option: |
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 Value type: String (paths) Default: (none) Command-line option: |
com.fortify.sca.DjangoDisableAutodiscover |
Specifies that OpenText SAST does not automatically discover Django templates. Value type: Boolean Default: (none) Command-line option: |
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: |
com.fortify.sca.DisableTemplateAutodiscover |
Specifies that OpenText SAST does not automatically discover Django or Jinja2 templates. Value type: Boolean Default: (none) Command-line option: |