mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
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:
parent
f90f533952
commit
c56400aa3e
@ -12,7 +12,7 @@ index 9854a0e1..fefdd613 100644
|
|||||||
- file_path = os.path.abspath(inspect.stack()[0][1])
|
- file_path = os.path.abspath(inspect.stack()[0][1])
|
||||||
- env["PYTHONPATH"] = os.path.dirname(os.path.dirname(file_path))
|
- env["PYTHONPATH"] = os.path.dirname(os.path.dirname(file_path))
|
||||||
+ cmd = [ "@dvc@" , "daemon", "-q"] + args
|
+ cmd = [ "@dvc@" , "daemon", "-q"] + args
|
||||||
+ env = None
|
+ env = os.environ.copy()
|
||||||
env[DVC_DAEMON] = "1"
|
env[DVC_DAEMON] = "1"
|
||||||
|
|
||||||
_spawn(cmd, env)
|
_spawn(cmd, env)
|
||||||
|
Loading…
Reference in New Issue
Block a user