Browse Source

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.

Alexander Gessler 10 years ago
parent
commit
0943936b31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/regression/gen_db.py

+ 1 - 1
test/regression/gen_db.py

@@ -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,