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:
Fabian Affolter 2022-03-30 09:45:42 +02:00 committed by GitHub
commit 732d35fbf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)