Skip to content

Commit

Permalink
Merge pull request #2 from jdietrch/fnfe
Browse files Browse the repository at this point in the history
Include ADDON_DIR when opening config file
  • Loading branch information
superstes authored Dec 19, 2024
2 parents 3710998 + 848214e commit 385d501
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def format_var(name: str, data: list, version: int) -> str:


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

0 comments on commit 385d501

Please sign in to comment.