changeset 1470:8bfbf5cb0e28

core: moved __version__ to __init__.py, so we can check version by doing "import sat;print(sat.__version__)"
author Goffi <goffi@goffi.org>
date Tue, 18 Aug 2015 09:01:18 +0200
parents b233274e9a0f
children 934e402c90bf
files src/__init__.py src/core/sat_main.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/__init__.py	Tue Aug 18 09:01:18 2015 +0200
+++ b/src/__init__.py	Tue Aug 18 09:01:18 2015 +0200
@@ -0,0 +1,3 @@
+from core.constants import Const as C
+
+__version__ = C.APP_VERSION
--- a/src/core/sat_main.py	Tue Aug 18 09:01:18 2015 +0200
+++ b/src/core/sat_main.py	Tue Aug 18 09:01:18 2015 +0200
@@ -48,9 +48,6 @@
     from ordereddict import OrderedDict
 
 
-__version__ = C.APP_VERSION
-
-
 class SAT(service.Service):
 
     @property