Home | History | Annotate | Download | only in tools

Lines Matching refs:root

22 # Paths from the root of the tree to directories to skip.
141 # 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.
228 # Absolute path here is resolved as relative to the source root.
244 def AbsolutePath(path, filename, root):
246 root."""
248 # Absolute-looking paths are relative to the source root
250 absolute_path = os.path.join(root, filename[1:])
252 absolute_path = os.path.join(root, path, filename)
257 def ParseDir(path, root, require_license_file=True):
277 readme_path = os.path.join(root, path, 'README.chromium')
303 license_path = AbsolutePath(path, filename, root)
316 required_path = AbsolutePath(path, metadata["Required Text"], root)
325 def ContainsFiles(path, root):
328 for _, dirs, files in os.walk(os.path.join(root, path)):
337 def FilterDirsWithFiles(dirs_list, root):
340 return [x for x in dirs_list if ContainsFiles(x, root)]
343 def FindThirdPartyDirs(prune_paths, root):
344 """Find all third_party directories underneath the source root."""
346 for path, dirs, files in os.walk(root):
347 path = path[len(root)+1:] # Pretty up the path.
383 def ScanThirdPartyDirs(root=None):
385 if root is None:
386 root = os.getcwd()
387 third_party_dirs = FindThirdPartyDirs(PRUNE_PATHS, root)
388 third_party_dirs = FilterDirsWithFiles(third_party_dirs, root)
393 metadata = ParseDir(path, root)
420 root = os.path.join(os.path.dirname(__file__), '..')
421 third_party_dirs = FindThirdPartyDirs(PRUNE_PATHS, root)
423 entry_template = open(os.path.join(root, 'chrome', 'browser', 'resources',
428 metadata = ParseDir(path, root)
445 file_template = open(os.path.join(root, 'chrome', 'browser', 'resources',