mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-25 16:28:57 +05:30
13 lines
341 B
Python
13 lines
341 B
Python
import ctypes
|
|
|
|
def loadlibc():
|
|
sharedlib = './lib3ddevil1.so'
|
|
libc = None
|
|
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)
|
|
return libc
|
|
|
|
libc = loadlibc() |