Skip to content

Commit

Permalink
Fix parameter detection on Windows (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab authored Nov 7, 2024
1 parent 79c1365 commit 85edbc3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/dftd3/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ def get_data_file_name(base_name: str = "parameters.toml") -> str:
dirname(__file__), "..", "..", "..", "..", "share", "s-dftd3", base_name
)
if not exists(data_file):
data_file = join(dirname(__file__), base_name)
# for Windows install layout
data_file = join(
dirname(__file__), "..", "..", "..", "Library", "share", "s-dftd3", base_name
)
if not exists(data_file):
data_file = join(dirname(__file__), base_name)

return data_file

Expand Down

0 comments on commit 85edbc3

Please sign in to comment.