l=os.path.splitext(p[prefix_length:])[0].split('-')# splits the filename (removing the basename first if one is defined, so the sequence number is always the first element)
parts=os.path.splitext(p[prefix_length:])[0].split('-')# splits the filename (removing the basename first if one is defined, so the sequence number is always the first element)