Skip to content

Commit

Permalink
Merge pull request #549 from marrink-lab/importlib
Browse files Browse the repository at this point in the history
Make sure DATA_PATH is always a pathlib.Path
  • Loading branch information
pckroon authored Oct 5, 2023
2 parents 914b4fa + caecbe5 commit 0459973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vermouth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
import atexit
from contextlib import ExitStack
except ImportError:
import os
DATA_PATH = os.path.join(os.path.dirname(__file__), 'data')
del os
from pathlib import Path
DATA_PATH = Path(__file__).parent / 'data'
del Path
else:
ref = files('vermouth') / 'data'
file_manager = ExitStack()
Expand Down

0 comments on commit 0459973

Please sign in to comment.