Set script version-lookup path to match docker structure.

This commit is contained in:
hockeygoalie35 2024-02-12 21:51:23 -05:00
parent 13a5bccc00
commit 4e96a47962

View file

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