fix(config): use set_root to set root

This commit is contained in:
psychedelicious 2024-03-11 23:18:24 +11:00
parent deffeb9655
commit 3d1f3818cb
2 changed files with 2 additions and 4 deletions

View File

@ -424,9 +424,7 @@ def get_model_merger(record_store: ModelRecordServiceBase) -> ModelMerger:
def main():
args = _parse_args()
if args.root_dir:
config.parse_args(["--root", str(args.root_dir)])
else:
config.parse_args([])
config.set_root(Path(args.root_dir))
try:
if args.front_end:

View File

@ -426,7 +426,7 @@ def main() -> None:
# change root if needed
if args.root_dir:
config.root = args.root_dir
config.set_root(args.root_dir)
try:
if args.front_end: