get_main_version
Return main version (X.Y[.Z]) from VERSION.
def get_main_version(
version: tuple = null
) - > string
Return main version (X.Y[.Z]) from VERSION.
Parameters
| Name | Type | Description |
|---|---|---|
| version | tuple = null | A version tuple to be processed; if null, the current system version is retrieved via get_complete_version. |
Returns
| Type | Description |
|---|---|
string | The formatted version string containing either two or three segments depending on whether a patch version exists. |