2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/dvc/daemon.py b/dvc/daemon.py
|
2022-01-19 23:45:15 +00:00
|
|
|
index 9854a0e1..fefdd613 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/dvc/daemon.py
|
|
|
|
+++ b/dvc/daemon.py
|
2022-01-19 23:45:15 +00:00
|
|
|
@@ -103,11 +103,8 @@ def daemon(args):
|
|
|
|
logger.debug("skipping launching a new daemon.")
|
|
|
|
return
|
|
|
|
|
|
|
|
- cmd = ["daemon", "-q"] + args
|
2020-04-24 23:36:52 +00:00
|
|
|
-
|
|
|
|
- env = fix_env()
|
|
|
|
- file_path = os.path.abspath(inspect.stack()[0][1])
|
2022-01-19 23:45:15 +00:00
|
|
|
- env["PYTHONPATH"] = os.path.dirname(os.path.dirname(file_path))
|
2020-04-24 23:36:52 +00:00
|
|
|
+ cmd = [ "@dvc@" , "daemon", "-q"] + args
|
2022-03-30 09:31:56 +00:00
|
|
|
+ env = os.environ.copy()
|
2022-01-19 23:45:15 +00:00
|
|
|
env[DVC_DAEMON] = "1"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
_spawn(cmd, env)
|