Skip to main content

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

NameTypeDescription
versiontuple = nullA version tuple to be processed; if null, the current system version is retrieved via get_complete_version.

Returns

TypeDescription
stringThe formatted version string containing either two or three segments depending on whether a patch version exists.