sumolib.version
index
c:\users\delphi\testreports\sumoextra\git\tools\sumolib\version.py

This module contains functions to determine the current SUMO version.

 
Modules
       
subprocess

 
Functions
       
fromVersionHeader()
Returns the version as defined in "include/version.h" or as a fallback
"src/config.h.cmake". Since the latter only contains the last release info it is extended
with "-0000000000" to mark that it may not be a release and the commit hash is unknown.
gitDescribe(commit='HEAD', gitDir=r'C:\Users\delphi\testreports\sumoExtra\git\tools\sumolib\..\..\.git', padZero=True)
The original git describe format is "<tag>-<commit_count>-g<hash>".
We convert it to "<tag>+<commit-count>-hash". If padZero is true (the default),
the commit count is padded to four digits.
If the git describe call fails, the result of fromVersionHeader is returned.

 
Data
        GITDIR = r'C:\Users\delphi\testreports\sumoExtra\git\tools\sumolib\..\..\.git'
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)
print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536)