mirror of
https://github.com/alerta/alerta.git
synced 2025-01-26 02:08:31 +00:00
10 lines
261 B
Python
10 lines
261 B
Python
|
|
version_tuple = (2, 4, 2, '+')
|
|
|
|
def get_version_string():
|
|
if isinstance(version_tuple[-1], basestring):
|
|
return '.'.join(map(str, version_tuple[:-1])) + version_tuple[-1]
|
|
return '.'.join(map(str, version_tuple))
|
|
|
|
version = get_version_string()
|
|
|