Makefile creates .so (internall a .dll on windows?)

This commit is contained in:
surkeh
2018-04-21 15:44:09 -07:00
parent d888298afd
commit 3f76eddbce
3 changed files with 28 additions and 13 deletions

15
bindings/py3devil1.py Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/python3
import ctypes
class PldHeader(ctypes.Structure):
@@ -14,8 +15,12 @@ class Devil1FN_PLD(ctypes.Structure):
]
def main():
libc = cdll.LoadLibrary('./libdevil1pld.so')
if (lib):
print("OK")
with open("pl01.pld", "rb") as f:
data = f.read()
sharedlib='./lib3ddevil1.so'
libc = cdll.LoadLibrary(sharedlib)
if (not lib):
print("Couldn't load %s" % sharedlib)
return 1
print("OK")
with open("pl01.pld", "rb") as f:
data = f.read()