Commit c56400aa authored by cfhammill's avatar cfhammill
Browse files

dvc: instantiate env to a copy of os.environ

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.
parent f90f5339
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ index 9854a0e1..fefdd613 100644
-    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 = os.environ.copy()
     env[DVC_DAEMON] = "1"
 
     _spawn(cmd, env)