Skip to content

Commit

Permalink
Merge pull request #62 from oemof/fixes/update-os-compatible-paths
Browse files Browse the repository at this point in the history
Update OS compatible paths in config.py
  • Loading branch information
jnnr committed Nov 17, 2022
2 parents c071a16 + bbde349 commit 6e9dc4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oemof/tabular/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import os
import pathlib

CONFIG_FOLDER = pathlib.PurePosixPath(__file__).parent
CONFIG_FOLDER = pathlib.PurePath(__file__).parent

FOREIGN_KEYS_FILE = os.environ.get(
"OEMOF_TABULAR_FOREIGN_KEYS_FILE",
CONFIG_FOLDER / "foreign_keys.json"
pathlib.Path(CONFIG_FOLDER, "foreign_keys.json")
)
with open(FOREIGN_KEYS_FILE, "r") as fk_file:
FOREIGN_KEYS = json.load(fk_file)
Expand Down

0 comments on commit 6e9dc4a

Please sign in to comment.