Skip to content

Commit

Permalink
Make sure DATA_PATH is always a pathlib.Path
Browse files Browse the repository at this point in the history
  • Loading branch information
pckroon committed Oct 5, 2023
1 parent 914b4fa commit caecbe5
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 caecbe5

Please sign in to comment.