Unverified Commit 952d3402 authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Call add_dll_directory() as context manager (#3476)

parent 4142e198
...@@ -16,7 +16,8 @@ if sys.platform == 'win32': ...@@ -16,7 +16,8 @@ if sys.platform == 'win32':
os.environ['PATH'] = '%(lib)s;%(lib)s\plugins;%(path)s' % { os.environ['PATH'] = '%(lib)s;%(lib)s\plugins;%(path)s' % {
'lib': version.openmm_library_path, 'path': _path} 'lib': version.openmm_library_path, 'path': _path}
try: try:
os.add_dll_directory(version.openmm_library_path) with os.add_dll_directory(version.openmm_library_path):
from . import _openmm
except: except:
pass pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment