Index: net/test/python_utils.cc |
diff --git a/net/test/python_utils.cc b/net/test/python_utils.cc |
index bf66bea93bd2e79ce2bb5ea2a4244e5bd83b3909..4d0ff75b3ac7cf7d2a14d195f219a4427ee402dc 100644 |
--- a/net/test/python_utils.cc |
+++ b/net/test/python_utils.cc |
@@ -109,8 +109,14 @@ bool GetPyProtoPath(base::FilePath* dir) { |
bool GetPythonCommand(CommandLine* python_cmd) { |
DCHECK(python_cmd); |
- python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("python"))); |
+ //python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("python"))); |
Paweł Hajdan Jr.
2013/11/15 19:34:44
Remove the commented-out line.
|
+#if defined(OS_WIN) |
+ python_cmd->SetProgram(FilePath(FILE_PATH_LITERAL("cmd.exe"))); |
+ python_cmd->AppendArg("/c"); |
+ python_cmd->AppendArg("python"); |
+#elif defined(OS_POSIX) |
Paweł Hajdan Jr.
2013/11/15 19:34:44
This pre-processor conditional is unterminated, pl
|
+ python_cmd->SetProgram(FilePath(FILE_PATH_LITERAL("python"))); |
// Launch python in unbuffered mode, so that python output doesn't mix with |
// gtest output in buildbot log files. See http://crbug.com/147368. |
python_cmd->AppendArg("-u"); |
Paweł Hajdan Jr.
2013/11/15 19:34:44
Why don't we do the same for Windows?
|