nixpkgs/pkgs/applications/version-management/dvc/dvc-daemon.patch
2022-01-15 17:34:43 +01:00

19 lines
526 B
Diff

diff --git a/dvc/daemon.py b/dvc/daemon.py
index 9854a0e1..fefdd613 100644
--- a/dvc/daemon.py
+++ b/dvc/daemon.py
@@ -103,11 +103,8 @@ def daemon(args):
logger.debug("skipping launching a new daemon.")
return
- cmd = ["daemon", "-q"] + args
-
- env = fix_env()
- file_path = os.path.abspath(inspect.stack()[0][1])
- env["PYTHONPATH"] = os.path.dirname(os.path.dirname(file_path))
+ cmd = [ "@dvc@" , "daemon", "-q"] + args
+ env = None
env[DVC_DAEMON] = "1"
_spawn(cmd, env)