mirror of https://gitlab.com/ita1024/waf.git
Improve os.environ propagation #2264
This commit is contained in:
parent
9da14a3356
commit
2931163e56
|
@ -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