diff options
Diffstat (limited to 'net/test/local_test_server_posix.cc')
-rw-r--r-- | net/test/local_test_server_posix.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/test/local_test_server_posix.cc b/net/test/local_test_server_posix.cc index 7afd422..eda65fd 100644 --- a/net/test/local_test_server_posix.cc +++ b/net/test/local_test_server_posix.cc @@ -97,9 +97,11 @@ namespace net { bool LocalTestServer::LaunchPython(const FilePath& testserver_path) { // Log is useful in the event you want to run a nearby script (e.g. a test) in // the same environment as the TestServer. - VLOG(1) << "LaunchPython called with PYTHONPATH = " << - getenv(kPythonPathEnv); - CommandLine python_command(FilePath(FILE_PATH_LITERAL("python"))); + VLOG(1) << "LaunchPython called with PYTHONPATH = " << getenv(kPythonPathEnv); + + CommandLine python_command(CommandLine::NO_PROGRAM); + if (!GetPythonCommand(&python_command)) + return false; python_command.AppendArgPath(testserver_path); if (!AddCommandLineArguments(&python_command)) |