Merge pull request #188 from jkua/master

Added check in the Python wrapper for Mac OS X/Darwin when loading the openalprpy library
This commit is contained in:
Matthew Hill
2015-08-23 16:22:49 -04:00

View File

@@ -8,6 +8,8 @@ class Alpr():
# Load the .dll for Windows and the .so for Unix-based # Load the .dll for Windows and the .so for Unix-based
if platform.system().lower().find("windows") != -1: if platform.system().lower().find("windows") != -1:
self._openalprpy_lib = ctypes.cdll.LoadLibrary("openalprpy.dll") self._openalprpy_lib = ctypes.cdll.LoadLibrary("openalprpy.dll")
elif platform.system().lower().find("darwin") != -1:
self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.dylib")
else: else:
self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.so") self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.so")