Skip to content

Commit

Permalink
fix: add data files to installable package
Browse files Browse the repository at this point in the history
This allows forcefield directories to be produced using the installed version of PyCGTOOL
  • Loading branch information
jag1g13 committed Oct 9, 2021
1 parent 626cc3a commit a9fdae8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pycgtool/forcefield.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, name: str, dir_path: PathLike = pathlib.Path('.')):
print(f'#define _FF_PYCGTOOL_{name}', file=itp)
print('#include "martini_v2.2.itp"', file=itp)

data_dir = pathlib.Path(__file__).parents[1].joinpath('data')
data_dir = pathlib.Path(__file__).parent.joinpath('data')

# Copy MARTINI files
copy_files(data_dir, self.directory, [
Expand Down

0 comments on commit a9fdae8

Please sign in to comment.