fixed docstrings
parent
7fff52bf86
commit
8d27a27445
|
@ -90,7 +90,8 @@ def try_load_functions(library_path, dll):
|
||||||
None
|
None
|
||||||
If successful:
|
If successful:
|
||||||
Tuple containing (library_path,
|
Tuple containing (library_path,
|
||||||
load function,
|
load from filename function,
|
||||||
|
load from memory function
|
||||||
release function,
|
release function,
|
||||||
ctypes handle to assimp library)
|
ctypes handle to assimp library)
|
||||||
'''
|
'''
|
||||||
|
@ -114,10 +115,10 @@ def search_library():
|
||||||
Loads the assimp library.
|
Loads the assimp library.
|
||||||
Throws exception AssimpError if no library_path is found
|
Throws exception AssimpError if no library_path is found
|
||||||
|
|
||||||
Returns: tuple, (load filename function,
|
Returns: tuple, (load from filename function,
|
||||||
|
load from memory function,
|
||||||
release function,
|
release function,
|
||||||
dll,
|
dll)
|
||||||
load from memory function)
|
|
||||||
'''
|
'''
|
||||||
#this path
|
#this path
|
||||||
folder = os.path.dirname(__file__)
|
folder = os.path.dirname(__file__)
|
||||||
|
@ -148,7 +149,7 @@ def search_library():
|
||||||
# OK, this except is evil. But different OSs will throw different
|
# OK, this except is evil. But different OSs will throw different
|
||||||
# errors. So just ignore any errors.
|
# errors. So just ignore any errors.
|
||||||
continue
|
continue
|
||||||
|
# see if the functions we need are in the dll
|
||||||
loaded = try_load_functions(library_path, dll)
|
loaded = try_load_functions(library_path, dll)
|
||||||
if loaded: candidates.append(loaded)
|
if loaded: candidates.append(loaded)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue