Fix T55007: Support fluid simulation cache files

This also adds support for entire directory paths to be assets, in
addition to globs and numbered file sequences.
This commit is contained in:
Sybren A. Stüvel
2018-06-05 15:12:10 +02:00
parent fc144138d0
commit dfa07e19cc
5 changed files with 166 additions and 36 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ def expand_sequence(path: pathlib.Path) -> typing.Iterator[pathlib.Path]:
raise DoesNotExist(path)
if path.is_dir():
raise TypeError('path is a directory: %s' % path)
yield path
return
log.debug('expanding file sequence %s', path)