Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: frog/frog.py

Issue 9358010: isolates in frog: playing with API improvements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « corelib/src/isolate.dart ('k') | frog/lib/corelib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/frog.py
diff --git a/frog/frog.py b/frog/frog.py
index 119519f77153a509793116b850b3847a30b30ffb..6d9b7e34541b2090850ade65a5d9d1a4fb3c3e65 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)
« no previous file with comments | « corelib/src/isolate.dart ('k') | frog/lib/corelib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698