Lines Matching refs:path
15 import os.path
28 # component of path) matches a given regular expression.
47 def NormalizePath(path):
48 """Returns a path normalized to how we write DEPS rules and compare paths."""
49 return os.path.normcase(path).replace(os.path.sep, posixpath.sep)
67 dir_path = os.path.join(base_directory, os.path.dirname(line))
95 base_directory: local path to root of checkout, e.g. C:\chr\src.
102 os.path.join(os.path.dirname(__file__),
103 os.path.pardir, os.path.pardir))
104 self.base_directory = os.path.abspath(base_directory) # Local absolute path
112 if os.path.exists(os.path.join(base_directory, '.git')):
114 elif os.path.exists(os.path.join(base_directory, '.svn')):
134 cur_dir_norm: The current directory, normalized path. We will create an
200 dir_path_local_abs: The directory path that the DEPS file may live in (if
202 implicit rules. This is a local path.
239 deps_file_path = os.path.join(dir_path_local_abs, 'DEPS')
249 if os.path.isfile(deps_file_path) and not (
251 os.path.basename(dir_path_local_abs) == 'checkdeps'):
307 repo_path = os.path.join(self.base_directory, repo)
311 if dir_name and not os.path.isabs(dir_name):
312 dir_name = os.path.join(self.base_directory, dir_name)
323 elif not os.path.exists(os.path.join(current_dir, '.svn')):
335 full_name = os.path.join(current_dir, file_name)
336 if os.path.isdir(full_name):
354 dir_path_local: A local path to the directory you want rules for.
359 if os.path.isabs(dir_path_local):
362 dir_path_local_abs = os.path.join(self.base_directory, dir_path_local)
368 parent_dir_local_abs = os.path.dirname(dir_path_local_abs)