fix Version error

pull/420/head
meisnate12 3 years ago
parent d10aa91b8c
commit 3f67a67fd5

@ -99,7 +99,7 @@ logger.addHandler(cmd_handler)
sys.excepthook = util.my_except_hook sys.excepthook = util.my_except_hook
version = "Unknown" version = "Unknown"
with open("VERSION") as handle: with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "VERSION")) as handle:
for line in handle.readlines(): for line in handle.readlines():
line = line.strip() line = line.strip()
if len(line) > 0: if len(line) > 0:

Loading…
Cancel
Save