Browse Source

port/PyAssimp/pyassimp/helper.py: replace from ctypes import POINTER; POINTER(something) with ctypes.POINTER(something) to remove warning about importing ctype twice

Charlie Gettys 6 years ago
parent
commit
7930de9f37
1 changed files with 3 additions and 4 deletions
  1. 3 4
      port/PyAssimp/pyassimp/helper.py

+ 3 - 4
port/PyAssimp/pyassimp/helper.py

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