Skip to content

Commit 41bf004

Browse files
constants: allow custom db to be loaded
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
1 parent 812ceea commit 41bf004

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

oelint_parser/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
class Constants():
1111
"""Interface for constants"""
1212

13-
def __init__(self) -> None:
14-
self.__db = self.__load_db(DEFAULT_DB)
13+
def __init__(self, file_: str = DEFAULT_DB) -> None:
14+
self.__db = self.__load_db(file_)
1515

1616
def __load_db(self, path: str) -> dict:
1717
try:

0 commit comments

Comments
 (0)