Commit 1ca2a7bb authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: gifti.relatedFiles was returning dupes

parent d9a25af3
......@@ -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]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment