Set script version-lookup path to match docker structure.

This commit is contained in:
hockeygoalie35 2024-02-12 21:49:13 -05:00
parent 5afd750c76
commit 13a5bccc00

View file

@ -13,7 +13,7 @@ from datetime import datetime
# Pull script version from previous # Pull script version from previous
VERSION = '0.0.0' VERSION = '0.0.0'
with open(os.path.join(os.pardir, "ARLChecker"), "r") as r: with open("./custom-services.d/ARLChecker", "r") as r:
for line in r: for line in r:
if 'scriptVersion' in line: if 'scriptVersion' in line:
VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','') VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','')