diff --git a/forcedimension/__init__.py b/forcedimension/__init__.py index ea14e0a..088ad8a 100644 --- a/forcedimension/__init__.py +++ b/forcedimension/__init__.py @@ -23,7 +23,7 @@ ) -__version__ = '0.1.4' +__version__ = '0.1.5' DefaultVecType = EuclidianVector diff --git a/forcedimension/dhd/os_independent.py b/forcedimension/dhd/os_independent.py index 2b99c70..3e04744 100644 --- a/forcedimension/dhd/os_independent.py +++ b/forcedimension/dhd/os_independent.py @@ -7,8 +7,13 @@ """ from ctypes import c_bool, c_byte, c_double +from forcedimension import runtime + +_libdhd = runtime.load("libdrd") + +if _libdhd is None: + raise ImportError("There were problems loading libdhd.") -from forcedimension.dhd import _libdhd _libdhd.dhdKbHit.argtypes = [] _libdhd.dhdKbHit.restype = c_bool diff --git a/pyproject.toml b/pyproject.toml index c1dd480..7b26c38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "forcedimension" -version = "0.1.4" +version = "0.1.5" authors = [ { name="Ember Chow", email="emberchow.business@gmail.com" }, ]