fixed splitting of sequence

This commit is contained in:
Jakub Trllo 2022-04-26 15:49:22 +02:00
parent 911163756e
commit 342fda6315

View file

@ -379,11 +379,11 @@ class FileDefItem(object):
if not self.is_sequence:
raise ValueError("Cannot split single file item")
output = []
for filename in self.filenames:
path = os.path.join(self.directory, filename)
output.append(self.from_paths([path]))
return output
paths = [
os.path.join(self.directory, filename)
for filename in self.filenames
]
return self.from_paths(paths, False)
@property
def ext(self):