Allow Windows run on Debug Build for Python (#691)

This commit is contained in:
Raaj
2018-06-29 12:50:59 -04:00
committed by Gines
parent 6d449f7518
commit 6d76f91a06
+4 -1
View File
@@ -23,7 +23,10 @@ class OpenPose(object):
elif platform == "darwin":
_libop= np.ctypeslib.load_library('_openpose', dir_path+'/_openpose.dylib')
elif platform == "win32":
_libop= np.ctypeslib.load_library('_openpose', dir_path+'/Release/_openpose.dll')
try:
_libop= np.ctypeslib.load_library('_openpose', dir_path+'/Release/_openpose.dll')
except OSError as e:
_libop= np.ctypeslib.load_library('_openpose', dir_path+'/Debug/_openpose.dll')
_libop.newOP.argtypes = [
ct.c_int, ct.c_char_p, ct.c_char_p, ct.c_char_p, ct.c_float, ct.c_float, ct.c_int, ct.c_float, ct.c_int, ct.c_bool, ct.c_char_p]
_libop.newOP.restype = ct.c_void_p