2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 03:09:30 +01:00

Improve os.environ propagation #2264

This commit is contained in:
Thomas Nagy 2019-11-03 10:23:31 +01:00
parent b8f19bfea3
commit 4e171c87ad
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

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