Smarter way of reinjecting files by extension

Use the file name to match against the list of extensions, and
not just the last extension used.
This commit is contained in:
Thomas Nagy 2011-10-04 20:29:05 +02:00
parent 476f89681a
commit 02cb892519
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ def declare_chain(name='', rule=None, reentrant=None, color='BLUE',
self.source.append(k)
else:
for y in keys: # ~ nfile * nextensions :-/
if x.endswith(y):
if k.name.endswith(y):
self.source.append(k)
break
cnt += 1