mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
c56400aa3e
this line removes the dvc utility fix_env which works around pyenv (irrelevant for nix I think), fix_env instantiates env as a copy of os.environ is its env argument is None, so I think this behaviour is close to what the dvc authors intended.
19 lines
539 B
Diff
19 lines
539 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 = os.environ.copy()
|
|
env[DVC_DAEMON] = "1"
|
|
|
|
_spawn(cmd, env)
|