diff --git a/src/opengnsys/__init__.py b/src/opengnsys/__init__.py index 02e7c34..0197f32 100644 --- a/src/opengnsys/__init__.py +++ b/src/opengnsys/__init__.py @@ -38,10 +38,10 @@ import modules from RESTApi import REST, RESTError try: - with open('VERSION', 'r') as v: - VERSION = v.read() + with open('../VERSION', 'r') as v: + VERSION = v.read().strip() except IOError: - VERSION = '1.1.0' + VERSION = '1.1.1b' __title__ = 'OpenGnsys Agent' __version__ = VERSION diff --git a/src/setup.py b/src/setup.py index 15254f4..85300f7 100644 --- a/src/setup.py +++ b/src/setup.py @@ -63,7 +63,7 @@ import sys # Reading version file: try: with open('VERSION', 'r') as v: - VERSION = v.read() + VERSION = v.read().split() except IOError: VERSION = '1.1.0'