mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix python wrapper
This commit is contained in:
@ -24,6 +24,10 @@ def _loadLibrary(path):
|
|||||||
library_name = 'libdocbuilder.c.so'
|
library_name = 'libdocbuilder.c.so'
|
||||||
elif 'darwin' == os_name:
|
elif 'darwin' == os_name:
|
||||||
library_name = 'libdocbuilder.c.dylib'
|
library_name = 'libdocbuilder.c.dylib'
|
||||||
|
# if there is no dylib file, get library from framework
|
||||||
|
if not os.path.exists(path + '/' + library_name):
|
||||||
|
path = path + '/docbuilder.c.framework'
|
||||||
|
library_name = 'docbuilder.c'
|
||||||
|
|
||||||
_lib = ctypes.CDLL(path + '/' + library_name)
|
_lib = ctypes.CDLL(path + '/' + library_name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user