From f18e1f7f952ddcecc1148abacb3e52a08ddbd01c Mon Sep 17 00:00:00 2001 From: John Kua Date: Fri, 21 Aug 2015 14:42:30 -0400 Subject: [PATCH] Added check for Mac OS X/Darwin when loading the openalprpy library --- src/bindings/python/openalpr/openalpr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bindings/python/openalpr/openalpr.py b/src/bindings/python/openalpr/openalpr.py index 73801bf..a22969d 100644 --- a/src/bindings/python/openalpr/openalpr.py +++ b/src/bindings/python/openalpr/openalpr.py @@ -8,6 +8,8 @@ class Alpr(): # Load the .dll for Windows and the .so for Unix-based if platform.system().lower().find("windows") != -1: self._openalprpy_lib = ctypes.cdll.LoadLibrary("openalprpy.dll") + elif platform.system().lower().find("darwin") != -1: + self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.dylib") else: self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.so")