From 31b40816b51aeb8c00fdc678d3665e77cf54bb73 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 22 Sep 2019 05:18:51 +0300 Subject: [PATCH] daemon: use `sys.argv[0]` instead of `-m dvc` This way dvc will actually launch the same script that it is running from and not installed dvc module, that might not match. Signed-off-by: Ruslan Kuprieiev --- dvc/daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/daemon.py b/dvc/daemon.py index b4623a6585..10dc40fd3b 100644 --- a/dvc/daemon.py +++ b/dvc/daemon.py @@ -94,7 +94,7 @@ def daemon(args): cmd = [sys.executable] if not is_binary(): - cmd += ["-m", "dvc"] + cmd += [sys.argv[0]] cmd += ["daemon", "-q"] + args env = fix_env()