python_utils.h revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
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
10namespace base {
11class CommandLine;
12class FilePath;
13}
14
15// This is the python path variable name.
16extern const char kPythonPathEnv[];
17
18// Appends the dir to python path environment variable.
19void AppendToPythonPath(const base::FilePath& dir);
20
21// Return the location of the compiler-generated python protobuf.
22bool GetPyProtoPath(base::FilePath* dir);
23
24// Returns the command that should be used to launch Python.
25bool GetPythonCommand(base::CommandLine* python_cmd) WARN_UNUSED_RESULT;
26
27#endif  // NET_TEST_PYTHON_UTILS_H_
28