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

pull/2392/head
Charlie Gettys 2019-03-27 13:19:57 -04:00
parent e849b94f68
commit 7930de9f37
1 changed files with 3 additions and 4 deletions

View File

@ -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():