Fix an issue in the regression DB generator that caused the very last file extension in the list returned by `assimp listext` to be ignored because of a trailing CRLF.

pull/515/head
Alexander Gessler 2015-03-28 13:18:54 +01:00 committed by Alexander Gessler
parent fcdefc7b16
commit 0943936b31
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ if __name__ == "__main__":
if ext_list is None: if ext_list is None:
(ext_list, err) = subprocess.Popen([assimp_bin_path, "listext"], (ext_list, err) = subprocess.Popen([assimp_bin_path, "listext"],
stdout=subprocess.PIPE).communicate() stdout=subprocess.PIPE).communicate()
ext_list = str(ext_list).lower().split(";") ext_list = str(ext_list.strip()).lower().split(";")
# todo: Fix for multi dot extensions like .skeleton.xml # todo: Fix for multi dot extensions like .skeleton.xml
ext_list = list(filter(lambda f: not f in settings.exclude_extensions, ext_list = list(filter(lambda f: not f in settings.exclude_extensions,