comparison src/core/sat_main.py @ 2147:bca699faf416

core: added release name in constants + full version
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 19:23:34 +0100
parents 1bb9bf1b4150
children 4b78b4c7f805
comparison
equal deleted inserted replaced
2146:1bb9bf1b4150 2147:bca699faf416
127 """Return the short version of SàT""" 127 """Return the short version of SàT"""
128 return C.APP_VERSION 128 return C.APP_VERSION
129 129
130 @property 130 @property
131 def full_version(self): 131 def full_version(self):
132 """Return the full version of SàT (with extra data when in development mode)""" 132 """Return the full version of SàT (with release name and extra data when in development mode)"""
133 version = self.version 133 version = self.version
134 if version[-1] == 'D': 134 if version[-1] == 'D':
135 # we are in debug version, we add extra data 135 # we are in debug version, we add extra data
136 try: 136 try:
137 return self._version_cache 137 return self._version_cache
138 except AttributeError: 138 except AttributeError:
139 self._version_cache = u"{} ({})".format(version, utils.getRepositoryData(sat)) 139 self._version_cache = u"{} « {} » ({})".format(version, C.APP_RELEASE_NAME, utils.getRepositoryData(sat))
140 return self._version_cache 140 return self._version_cache
141 else: 141 else:
142 return version 142 return version
143 143
144 @property 144 @property