2
0
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:
Thomas Nagy 2016-07-31 18:48:36 +02:00
parent 332f3c5665
commit a4e7cb1930
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -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: