unify single user and multi user behaviour
This commit is contained in:
@@ -342,6 +342,10 @@ def _resolve_config(
|
||||
cfg.input_dirs = [Path(input_dir).expanduser()]
|
||||
if output_dir:
|
||||
cfg.output_dir = Path(output_dir).expanduser()
|
||||
# Always write into {data_root}/{handle}/ so the data dir is always
|
||||
# instance-rooted and single/multi-user share the same layout.
|
||||
if cfg.output_dir.name != cfg.owner_handle:
|
||||
cfg.output_dir = cfg.output_dir / cfg.owner_handle
|
||||
return cfg
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user