| Index: frog/frog.py
|
| diff --git a/frog/frog.py b/frog/frog.py
|
| index 44dd12b015802790f3d6755e5ccce9f7c6e4533e..7c8a090d8e7c5db3dbf50033fa0b5fe3b070b3b8 100755
|
| --- a/frog/frog.py
|
| +++ b/frog/frog.py
|
| @@ -42,10 +42,16 @@ def GetD8():
|
|
|
| D8 = GetD8()
|
|
|
| +# The following environment variable is needed for isolate tests to work.
|
| +# TODO(sigmund): delete this and the 'env' parameter in 'execute' when we remove
|
| +# dependencies to nodejs
|
| +os.environ['NODE_MODULE_CONTEXTS'] = '1'
|
| +
|
| def execute(cmd):
|
| """Execute a command in a subprocess. """
|
| try:
|
| - proc = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr)
|
| + proc = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr,
|
| + env=os.environ)
|
| return proc.wait()
|
| except Exception as e:
|
| print 'Exception when executing: ' + ' '.join(cmd)
|
|
|