core: detect compression, wrap in CPath if necessary

This commit is contained in:
Dima Gerasimov 2020-07-13 22:30:40 +01:00 committed by karlicoss
parent 77deef98de
commit 092aef88ce
4 changed files with 18 additions and 10 deletions

View file

@ -67,11 +67,7 @@ logger = LazyLogger(__name__, level='debug')
from pathlib import Path
def inputs() -> Sequence[Path]:
files = get_files(config.export_path)
# TODO Cpath better be automatic by get_files...
from .kython.kompress import CPath
res = tuple(map(CPath, files))
return res
return get_files(config.export_path)
Sid = dal.Sid