Lines Matching refs:root
22 # Paths from the root of the tree to directories to skip.
140 # Absolute path here is resolved as relative to the source root.
191 # Absolute path here is resolved as relative to the source root.
221 # Absolute path here is resolved as relative to the source root.
236 def AbsolutePath(path, filename, root):
238 root."""
240 # Absolute-looking paths are relative to the source root
242 absolute_path = os.path.join(root, filename[1:])
244 absolute_path = os.path.join(root, path, filename)
249 def ParseDir(path, root, require_license_file=True):
269 readme_path = os.path.join(root, path, 'README.chromium')
295 license_path = AbsolutePath(path, filename, root)
308 required_path = AbsolutePath(path, metadata["Required Text"], root)
317 def ContainsFiles(path, root):
320 for _, dirs, files in os.walk(os.path.join(root, path)):
329 def FilterDirsWithFiles(dirs_list, root):
332 return [x for x in dirs_list if ContainsFiles(x, root)]
335 def FindThirdPartyDirs(prune_paths, root):
336 """Find all third_party directories underneath the source root."""
338 for path, dirs, files in os.walk(root):
339 path = path[len(root)+1:] # Pretty up the path.
375 def ScanThirdPartyDirs(root=None):
377 if root is None:
378 root = os.getcwd()
379 third_party_dirs = FindThirdPartyDirs(PRUNE_PATHS, root)
380 third_party_dirs = FilterDirsWithFiles(third_party_dirs, root)
385 metadata = ParseDir(path, root)
412 root = os.path.join(os.path.dirname(__file__), '..')
413 third_party_dirs = FindThirdPartyDirs(PRUNE_PATHS, root)
415 entry_template = open(os.path.join(root, 'chrome', 'browser', 'resources',
420 metadata = ParseDir(path, root)
437 file_template = open(os.path.join(root, 'chrome', 'browser', 'resources',