Skip to content

Commit

Permalink
More Updates for Pathlib
Browse files Browse the repository at this point in the history
  • Loading branch information
Alrobbertz committed Jun 4, 2024
1 parent 0de810a commit eb8b4c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hermes_spani/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under Apache License v2 - see LICENSE.rst
import os.path
from pathlib import Path

from hermes_core import log
from hermes_spani.io.file_tools import read_file
Expand All @@ -19,7 +19,7 @@
INST_TO_SHORTNAME = {INST_NAME: INST_SHORTNAME}
INST_TO_TARGETNAME = {INST_NAME: INST_TARGETNAME}

_package_directory = os.path.dirname(os.path.abspath(__file__))
_data_directory = os.path.abspath(os.path.join(_package_directory, "data"))
_package_directory = Path(__file__).parent
_data_directory = _package_directory / "data"

log.info(f"hermes_spani version: {__version__}")

0 comments on commit eb8b4c2

Please sign in to comment.