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}".')