Skip to content

Commit

Permalink
fix config path
Browse files Browse the repository at this point in the history
  • Loading branch information
mzakharo committed Feb 5, 2024
1 parent 5141e95 commit b704f0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions birdnetapp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
from .clean import cleanup
from dataclasses import dataclass
import yaml

import os
dir_path = os.path.dirname(os.path.realpath(__file__))

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -52,7 +53,7 @@ class Config:
rate: int

@classmethod
def load(cls, path: str = os.path.abspath("config.yaml")) -> "Config":
def load(cls, path: str = os.path.join(dir_path, "..", "config.yaml")) -> "Config":
with open(path, "r") as f:
config_dict = yaml.safe_load(f)
return cls(**config_dict)
Expand Down

0 comments on commit b704f0d

Please sign in to comment.