mirror of
https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
synced 2024-12-27 14:09:33 +03:00
fixes
This commit is contained in:
parent
36094276ea
commit
9926f8248e
@ -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}".')
|
||||
|
Loading…
Reference in New Issue
Block a user