cleaned up error message autoreplacement

pull/359/head
Michael Dawson-Haggerty 2014-09-04 01:06:30 -04:00
parent 5ae65987c0
commit 7fff52bf86
1 changed files with 3 additions and 3 deletions

View File

@ -153,13 +153,13 @@ def search_library():
if loaded: candidates.append(loaded)
if not candidates:
# no library_path found
raise AssimpError("assimp library_path not found")
# no library found
raise AssimpError("assimp library not found")
else:
# get the newest library_path
candidates = map(lambda x: (os.lstat(x[0])[-2], x), candidates)
res = max(candidates, key=operator.itemgetter(0))[1]
logger.debug('Using assimp library_path located at ' + res[0])
logger.debug('Using assimp library located at ' + res[0])
# XXX: if there are 1000 dll/so files containing 'assimp'
# in their name, do we have all of them in our address