From 4e171c87adf3401e817a7d434f82aa9510ff0d72 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sun, 3 Nov 2019 10:23:31 +0100 Subject: [PATCH] Improve os.environ propagation #2264 --- waflib/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Utils.py b/waflib/Utils.py index 7472226d..fc64fa05 100644 --- a/waflib/Utils.py +++ b/waflib/Utils.py @@ -891,7 +891,7 @@ def run_prefork_process(cmd, kwargs, cargs): """ Delegates process execution to a pre-forked process instance. """ - if not 'env' in kwargs: + if not kwargs.get('env'): kwargs['env'] = dict(os.environ) try: obj = base64.b64encode(cPickle.dumps([cmd, kwargs, cargs]))