|
@@ -6,7 +6,6 @@ Some fancy helper functions.
|
|
|
|
|
|
import os
|
|
|
import ctypes
|
|
|
-from ctypes import POINTER
|
|
|
import operator
|
|
|
|
|
|
from distutils.sysconfig import get_python_lib
|
|
@@ -193,9 +192,9 @@ def try_load_functions(library_path, dll):
|
|
|
|
|
|
# library found!
|
|
|
from .structs import Scene, ExportDataBlob
|
|
|
- load.restype = POINTER(Scene)
|
|
|
- load_mem.restype = POINTER(Scene)
|
|
|
- export2blob.restype = POINTER(ExportDataBlob)
|
|
|
+ load.restype = ctype.POINTER(Scene)
|
|
|
+ load_mem.restype = ctype.POINTER(Scene)
|
|
|
+ export2blob.restype = ctype.POINTER(ExportDataBlob)
|
|
|
return (library_path, load, load_mem, export, export2blob, release, dll)
|
|
|
|
|
|
def search_library():
|