Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
68fd0f67
Unverified
Commit
68fd0f67
authored
Aug 06, 2024
by
Peter Eastman
Committed by
GitHub
Aug 06, 2024
Browse files
Don't require importlib_metadata (#4612)
* Don't require importlib_metadata * Handle older versions of importlib
parent
79202805
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
wrappers/python/openmm/app/forcefield.py
wrappers/python/openmm/app/forcefield.py
+6
-0
No files found.
wrappers/python/openmm/app/forcefield.py
View file @
68fd0f67
...
...
@@ -58,6 +58,12 @@ def _getDataDirectories():
_dataDirectories
=
[
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'data'
)]
try
:
from
importlib_metadata
import
entry_points
except
:
try
:
from
importlib.metadata
import
entry_points
except
:
pass
try
:
for
entry
in
entry_points
().
select
(
group
=
'openmm.forcefielddir'
):
_dataDirectories
.
append
(
entry
.
load
()())
except
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment