xsigus24's picture
Upload folder using huggingface_hub
1d777c4
raw
history blame
489 Bytes
# just load libfreexl using ctypes
import os
import sys
import ctypes
import platform
bits, linkage = platform.architecture()
bits = bits[:2]
if sys.platform == 'win32':
libfreexl = ctypes.CDLL('krb5_%s.dll' % bits)
elif sys.platform == 'darwin':
# LD_LIBRARY_PATH not set on OSX or Linux
path = os.path.expandvars('$PREFIX/lib/libkrb5.dylib')
libfreexl = ctypes.CDLL(path)
else:
path = os.path.expandvars('$PREFIX/lib/libkrb5.so')
libfreexl = ctypes.CDLL(path)