From 9926f8248eb5c70665627bba67b73bb2622746c6 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 15 Nov 2024 06:33:45 +0100 Subject: [PATCH] fixes --- app/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/util.py b/app/util.py index b5b1ff1..03c8a96 100644 --- a/app/util.py +++ b/app/util.py @@ -46,9 +46,10 @@ class NV: self.log = logging.getLogger(self.__class__.__name__) if NV.__DRIVER_MATRIX is None: + from os.path import join, dirname from json import load as json_load try: - file = open(NV.__DRIVER_MATRIX_FILENAME) + file = open(join(dirname(__file__), NV.__DRIVER_MATRIX_FILENAME)) NV.__DRIVER_MATRIX = json_load(file) file.close() self.log.debug(f'Successfully loaded "{NV.__DRIVER_MATRIX_FILENAME}".')