leptonica: Use Windows name for DLL

Thanks to @dibu28
This commit is contained in:
James R. Barlow
2019-12-04 17:13:51 -08:00
parent 72d3ee3a87
commit d5bb9929f3
+5 -1
View File
@@ -39,7 +39,11 @@ from .lib._leptonica import ffi
logger = logging.getLogger(__name__)
lept = ffi.dlopen(find_library('lept'))
if os.name == 'nt':
libname = 'liblept-5'
else:
libname = 'lept'
lept = ffi.dlopen(find_library(libname))
lept.setMsgSeverity(lept.L_SEVERITY_WARNING)