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 <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2019-09-22 05:18:51 +03:00
parent 23fc2662d0
commit 31b40816b5
+1 -1
View File
@@ -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()