Lines Matching refs:dir
18 void AppendToPythonPath(const FilePath& dir) { in AppendToPythonPath() argument
23 dir_path = WideToUTF8(dir.value()); in AppendToPythonPath()
25 dir_path = dir.value(); in AppendToPythonPath()
49 FilePath dir(start_dir); in TryRelativeToDir() local
50 while (!file_util::DirectoryExists(dir.Append(to_try))) { in TryRelativeToDir()
51 FilePath parent = dir.DirName(); in TryRelativeToDir()
52 if (parent == dir) { in TryRelativeToDir()
56 dir = parent; in TryRelativeToDir()
58 *out_dir = dir; in TryRelativeToDir()
64 bool GetPyProtoPath(FilePath* dir) { in GetPyProtoPath() argument
84 if (!TryRelativeToDir(generated_code_dir, kPyProto, dir)) { in GetPyProtoPath()
93 if (!TryRelativeToDir(generated_code_dir, kPyProto, dir)) { in GetPyProtoPath()
99 generated_code_dir = *dir; in GetPyProtoPath()
101 *dir = generated_code_dir.Append(kPyProto); in GetPyProtoPath()
102 VLOG(2) << "Found " << kPyProto.value() << " in " << dir->value(); in GetPyProtoPath()
106 bool GetPythonRunTime(FilePath* dir) { in GetPythonRunTime() argument
108 if (!PathService::Get(base::DIR_SOURCE_ROOT, dir)) in GetPythonRunTime()
110 *dir = dir->Append(FILE_PATH_LITERAL("third_party")) in GetPythonRunTime()
114 *dir = FilePath("python"); in GetPythonRunTime()