Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
pynfogen: Fix main interface config loading path
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed May 5, 2021
1 parent 9dbe301 commit 745c040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pynfogen/pynfogen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from pathlib import Path

import yaml

Expand All @@ -8,7 +9,7 @@
def main():
nfo = NFO()

with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "config.yml")) as f:
with open(Path(os.path.realpath(__file__)).parent.parent / "config.yml") as f:
config = yaml.load(f, Loader=yaml.FullLoader)
nfo.set_config(**config)

Expand Down

0 comments on commit 745c040

Please sign in to comment.