python_utils.h revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
1// Copyright (c) 2010 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef NET_TEST_PYTHON_UTILS_H_ 6#define NET_TEST_PYTHON_UTILS_H_ 7 8#include "base/compiler_specific.h" 9 10class CommandLine; 11 12namespace base { 13class FilePath; 14} 15 16// This is the python path variable name. 17extern const char kPythonPathEnv[]; 18 19// Appends the dir to python path environment variable. 20void AppendToPythonPath(const base::FilePath& dir); 21 22// Return the location of the compiler-generated python protobuf. 23bool GetPyProtoPath(base::FilePath* dir); 24 25// Returns the command that should be used to launch Python. 26bool GetPythonCommand(CommandLine* python_cmd) WARN_UNUSED_RESULT; 27 28#endif // NET_TEST_PYTHON_UTILS_H_ 29