"platforms/cuda/vscode:/vscode.git/clone" did not exist on "0a38a824b24fea41ca5d18c820bb87987ecb37f2"
__init__.py 760 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
"""
Package simtk.openmm

This package wraps the simtk.openmm.openmm module.
When imported, it loads the swig module and then does some magic
to make the POSIX function "dlopen" work on Linux.
It also tries to load any plugin modules it can find.
"""

__author__ = "Randall J. Radmer"

12
import os, os.path
Peter Eastman's avatar
Peter Eastman committed
13
from simtk.openmm.openmm import *
14
from simtk.openmm.vec3 import Vec3
15
from simtk.openmm import version
16
if os.getenv('OPENMM_PLUGIN_DIR') is None and os.path.isdir(version.openmm_library_path):
17
18
19
    pluginLoadedLibNames = Platform.loadPluginsFromDirectory(os.path.join(version.openmm_library_path, 'plugins'))
else:
    pluginLoadedLibNames = Platform.loadPluginsFromDirectory(Platform.getDefaultPluginsDirectory())
20
__version__ = Platform.getOpenMMVersion()