Python command-line options
The following table describes the Python options.
| Python option | Description |
|---|---|
|
|
Specifies the Python source code version to scan. The valid values for Equivalent property name: |
-python-no-auto-root-calculation |
Disables the automatic calculation of a common root directory of all project source files to use for importing modules and packages. Equivalent property name: |
|
|
Specifies a semicolon-separated (Windows) or colon-separated (non-Windows) list of additional import directories. You can use the Equivalent property name: |
|
|
Specifies a semicolon-separated (Windows) or colon-separated (non-Windows) list of directories that contain Django templates. OpenText SAST sequentially searches the specified paths for each Django template file and uses the first template file encountered. Equivalent property name: |
|
|
Specifies that OpenText SAST does not automatically discover Django templates. Equivalent property name: |
-jinja-template-dirs
<dirs> |
Specifies a semicolon-separated (Windows) or colon-separated (non-Windows) list of directories that contain Jinja2 templates. OpenText SAST sequentially searches the specified paths for each Jinja2 template file and uses the first template file encountered. Equivalent property name: |
-disable-template-autodiscover |
Specifies that OpenText SAST does not automatically discover Django or Jinja2 templates. Equivalent property name: |