mirror of https://github.com/explosion/spaCy.git
Run DVC command in project dir
This commit is contained in:
parent
2f6ee0d018
commit
90b7fa8fed
|
@ -395,6 +395,7 @@ def project_run(project_dir: Path, subcommand: str, *dvc_args) -> None:
|
||||||
if subcommand in config.get("run", []):
|
if subcommand in config.get("run", []):
|
||||||
# This is one of the pipeline commands tracked in DVC
|
# This is one of the pipeline commands tracked in DVC
|
||||||
dvc_cmd = ["dvc", "repro", subcommand, *dvc_args]
|
dvc_cmd = ["dvc", "repro", subcommand, *dvc_args]
|
||||||
|
with working_dir(project_dir):
|
||||||
run_command(dvc_cmd)
|
run_command(dvc_cmd)
|
||||||
else:
|
else:
|
||||||
cmd = commands[subcommand]
|
cmd = commands[subcommand]
|
||||||
|
|
Loading…
Reference in New Issue