Lines Matching refs:path
50 CONFIG = os.path.join('infra', 'mb', 'mb_config.pyl')
51 GOMA_DEFAULT = os.path.join(os.path.expanduser("~"), 'goma')
54 TOOLS_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
55 sys.path.append(os.path.join(TOOLS_PATH, 'mb'))
139 # outdir is used as path, while using / if it's used in a gn context.
164 '-u', os.path.join('tools', 'mb', 'mb.py'),
173 gn_args_path = os.path.join(OUT_DIR, self._options.outdir, 'args.gn')
220 def _find_work_dir(self, path):
221 """Find the closest v8 root to `path`."""
222 if os.path.exists(os.path.join(path, 'tools', 'dev', 'v8gen.py')):
225 return path
226 elif os.path.dirname(path) == path:
230 return self._find_work_dir(os.path.dirname(path))
234 return os.path.normpath(os.environ.get('GOMA_DIR') or GOMA_DEFAULT)
244 return os.path.exists(self._goma_dir) and os.path.isdir(self._goma_dir)
268 more_gn_args, os.path.abspath(gn_args_path)))
276 mtime = os.path.getmtime(gn_args_path) + 1
283 # Always operate relative to the base directory for better relative-path