comparison libervia/backend/core/main.py @ 4079:10b6ad569157

version: use standard Python's `dev0` instead of Libervia specific `D` for dev version
author Goffi <goffi@goffi.org>
date Tue, 06 Jun 2023 12:41:53 +0200
parents 7c5654c54fed
children 02f0adc745c6
comparison
equal deleted inserted replaced
4078:15055a00162c 4079:10b6ad569157
111 """Return the full version of Libervia 111 """Return the full version of Libervia
112 112
113 In developement mode, release name and extra data are returned too 113 In developement mode, release name and extra data are returned too
114 """ 114 """
115 version = self.version 115 version = self.version
116 if version[-1] == "D": 116 if version.split(".")[-1] == "dev0":
117 # we are in debug version, we add extra data 117 # we are in debug version, we add extra data
118 try: 118 try:
119 return self._version_cache 119 return self._version_cache
120 except AttributeError: 120 except AttributeError:
121 self._version_cache = "{} « {} » ({})".format( 121 self._version_cache = "{} « {} » ({})".format(