#959: Update OGAgent version.

oglive
Ramón M. Gómez 2020-03-11 15:07:45 +01:00
parent 9732c070b7
commit f6d5f3007d
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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'