From 90b7fa8feda2b97d93476731c263c39f6bd74061 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 28 Jun 2020 15:33:53 +0200 Subject: [PATCH] Run DVC command in project dir --- spacy/cli/project.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/cli/project.py b/spacy/cli/project.py index 70bba0e51..f5f41cc3a 100644 --- a/spacy/cli/project.py +++ b/spacy/cli/project.py @@ -395,7 +395,8 @@ def project_run(project_dir: Path, subcommand: str, *dvc_args) -> None: if subcommand in config.get("run", []): # This is one of the pipeline commands tracked in DVC dvc_cmd = ["dvc", "repro", subcommand, *dvc_args] - run_command(dvc_cmd) + with working_dir(project_dir): + run_command(dvc_cmd) else: cmd = commands[subcommand] # Deps in non-DVC commands aren't tracked, but if they're defined,