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:
parent
b8f19bfea3
commit
4e171c87ad
@ -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]))
|
||||
|
Loading…
Reference in New Issue
Block a user