fix Version error

This commit is contained in:
meisnate12 2021-10-21 12:00:00 -04:00
parent d10aa91b8c
commit 3f67a67fd5

View file

@ -99,7 +99,7 @@ logger.addHandler(cmd_handler)
sys.excepthook = util.my_except_hook
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():
line = line.strip()
if len(line) > 0: