Skip to content

Commit 385d501

Browse files
authored
Merge pull request #2 from jdietrch/fnfe
Include ADDON_DIR when opening config file
2 parents 3710998 + 848214e commit 385d501

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/util.py

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def format_var(name: str, data: list, version: int) -> str:
5050

5151

5252
def load_config(file: str, key: str = None) -> (dict, list, None):
53+
file = f'{ADDON_DIR}/{file}'
5354
with open(file, 'r', encoding='utf-8') as _cnf:
5455
try:
5556
if key is None:

0 commit comments

Comments
 (0)