only check a library folder if it actually exists

otherwise this breaks for no reason if /usr/local/lib is missing.
pull/861/head
Michael Görner 2016-04-22 11:35:44 +02:00
parent f905f5700f
commit f1a984bd3b
1 changed files with 20 additions and 19 deletions

View File

@ -205,6 +205,7 @@ def search_library():
candidates = []
# test every file
for curfolder in [folder]+additional_dirs:
if os.path.isdir(curfolder):
for filename in os.listdir(curfolder):
# our minimum requirement for candidates is that
# they should contain 'assimp' somewhere in