mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 11:51:20 +01:00
Copy os.environ because Python3 cannot serialize it
This commit is contained in:
parent
332f3c5665
commit
a4e7cb1930
@ -822,7 +822,7 @@ def run_prefork_process(cmd, kwargs, cargs):
|
||||
Delegates process execution to a pre-forked process instance.
|
||||
"""
|
||||
if not 'env' in kwargs:
|
||||
kwargs['env'] = os.environ
|
||||
kwargs['env'] = dict(os.environ)
|
||||
try:
|
||||
obj = base64.b64encode(cPickle.dumps([cmd, kwargs, cargs]))
|
||||
except TypeError:
|
||||
|
Loading…
Reference in New Issue
Block a user