Commit 4cbd0d57 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[data] Make glob pattern more precise

This allows files with similar name not to clash.

For example input and input_data.
parent b266d0aa
......@@ -157,7 +157,7 @@ def getAllFilenames(filename, start_index=None, end_index=None):
# Retrieve all the related files
basename, ext = os.path.splitext(filename)
filenames = sorted(glob.glob(basename + "*"), key=file_start)
filenames = sorted(glob.glob(basename + ".*"), key=file_start)
# (If necessary) Only keep files containing the desired indices
if (start_index is not None) or (end_index is not None):
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