From 4a720511e4afe8f61023ceefe406dee702073957 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 22 Jun 2018 16:13:46 +0200 Subject: [PATCH] Update helper.py Remove dead code. --- port/PyAssimp/pyassimp/helper.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/port/PyAssimp/pyassimp/helper.py b/port/PyAssimp/pyassimp/helper.py index 4082a4b76..e0ee0ccbf 100644 --- a/port/PyAssimp/pyassimp/helper.py +++ b/port/PyAssimp/pyassimp/helper.py @@ -222,15 +222,7 @@ def search_library(): for filename in os.listdir(curfolder): # our minimum requirement for candidates is that # they should contain 'assimp' somewhere in - # their name - - - #if filename.lower().find('assimp')==-1 or\ - # os.path.splitext(filename)[-1].lower() not in ext_whitelist: ### this line had bugs, failed to select files with extensions .so.x [.so.1 .so.2 .so.3.1] - # continue ### worked on simple extensions only. like- .so .dll - - - ##### Modified Code --- to correctly select extension files ##### + # their name if filename.lower().find('assimp')==-1 : continue is_out=1