1 // Copyright 2010 The Chromium Authors 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 <vector> 9 10 #include "base/environment.h" 11 12 namespace base { 13 class CommandLine; 14 class FilePath; 15 } 16 17 // Modifies |map| to use the specified Python path. 18 void SetPythonPathInEnvironment(const std::vector<base::FilePath>& python_path, 19 base::EnvironmentMap* map); 20 21 // Returns the command that should be used to launch Python 3. 22 [[nodiscard]] bool GetPython3Command(base::CommandLine* python_cmd); 23 24 #endif // NET_TEST_PYTHON_UTILS_H_ 25