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.
This commit is contained in:
cfhammill 2022-03-28 20:09:35 -04:00
parent f90f533952
commit c56400aa3e

View File

@ -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)