Skip to content
Snippets Groups Projects
Commit 1ca2a7bb authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

BF: gifti.relatedFiles was returning dupes

parent d9a25af3
No related branches found
No related tags found
No related merge requests found
......@@ -333,7 +333,7 @@ def relatedFiles(fname, ftypes=None):
related = []
for ftype in ftypes:
related.extend(
glob.glob(op.join(dirname, '{}*{}'.format(prefix, ftype))))
hits = glob.glob(op.join(dirname, '{}*{}'.format(prefix, ftype)))
related.extend([h for h in hits if h not in related])
return [r for r in related if r != path]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment