mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #162505 from cfhammill/cfh/fix-dvc-daemon-patch_157998
fix: dvc daemon patch, instantiate env to a copy of os.environ
This commit is contained in:
commit
732d35fbf0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user