From 35d39b450f2b15478a9a2110721dad458d7f753a Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 18 Aug 2015 09:01:18 +0200 Subject: [PATCH] core: moved __version__ to __init__.py, so we can check version by doing "import sat;print(sat.__version__)" --- src/__init__.py | 3 +++ src/core/sat_main.py | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index e69de29b..209e06bd 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -0,0 +1,3 @@ +from core.constants import Const as C + +__version__ = C.APP_VERSION diff --git a/src/core/sat_main.py b/src/core/sat_main.py index cda04bd5..21bebe00 100644 --- a/src/core/sat_main.py +++ b/src/core/sat_main.py @@ -48,9 +48,6 @@ except ImportError: from ordereddict import OrderedDict -__version__ = C.APP_VERSION - - class SAT(service.Service): @property