lib3ddevil1/bindings/__init__.py

12 lines
293 B
Python

import ctypes
sharedlib = './lib3ddevil1.so'
try:
libc = ctypes.cdll.LoadLibrary(sharedlib)
except OSError as e:
print("Error loading dynamically linked library.\nOSError: " + str(e))
raise SystemExit("Couldn't load %s" % sharedlib)
# Don't need these anymore
del sharedlib