Skip to content
Browse files

Fix os.environ bug in cfgJsBin

  • Loading branch information...
1 parent 6e6b915 commit 3e9147a9e0dd1caa8c8a3d83debbd855dcab4e8e decoder committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 compileShell.py
View
3 compileShell.py
@@ -11,6 +11,7 @@
import sys
import re
import tempfile
+import copy
from traceback import format_exc
@@ -105,7 +106,7 @@ def cfgJsBin(archNum, compileType, threadsafe, configure, objdir):
This function configures a js binary depending on the parameters.
'''
cfgCmdList = []
- cfgEnvList = os.environ
+ cfgEnvList = copy.deepcopy(os.environ)
# For tegra Ubuntu, no special commands needed, but do install Linux prerequisites,
# do not worry if build-dep does not work, also be sure to apt-get zip as well.
if (archNum == '32') and (os.name == 'posix') and (os.uname()[1] != 'tegra-ubuntu'):

0 comments on commit 3e9147a

Please sign in to comment.
Something went wrong with that request. Please try again.