Skip to content

Commit

Permalink
run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jandom committed Nov 19, 2023
1 parent 0435c57 commit 2c3c03f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions gromacs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ def _generate_template_dict(dirname):
All template filenames are stored in config.templates.
"""
import importlib_resources

resource_path = importlib_resources.files("gromacs.config").joinpath(dirname)
return {
path.name: str(path.absolute())
Expand Down
5 changes: 1 addition & 4 deletions tests/datafiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@ def datafile(name):
file_manager = ExitStack()
atexit.register(file_manager.close)
ref = importlib_resources.files("tests.data") / name
path = file_manager.enter_context(
importlib_resources.as_file(ref)
)
path = file_manager.enter_context(importlib_resources.as_file(ref))
return path

0 comments on commit 2c3c03f

Please sign in to comment.