gslab-econ / gslab_python

Python tools for GSLab
MIT License
13 stars 11 forks source link

Anything builder changes SCons env in place #150

Closed arosenbe closed 6 years ago

arosenbe commented 6 years ago

This line changes the SCons env. This is a mutable object, so these changes are reflected outside the functions scope. This manifests when, for example, a log extension is set as default for all GSLab builders.

The solution is to copy the env inside the function and modify the copy.

arosenbe commented 6 years ago

Ok, we can't copy the env, but we can use its Clone method to do literally the same thing. Under PR by @stanfordquan at #151.