Lines Matching refs:path
77 LOCAL_REPLAY_WEBPAGES_ARCHIVE_DIR = os.path.join(
78 os.path.abspath(os.path.dirname(__file__)), 'page_sets', 'data')
83 CREDENTIALS_FILE_PATH = os.path.join(
84 os.path.abspath(os.path.dirname(__file__)), 'page_sets', 'data',
112 CHROMIUM_PAGE_SETS_PATH = os.path.join('tools', 'perf', 'page_sets')
149 self._chrome_page_sets_path = os.path.join(parse_options.chrome_src_path,
166 self._telemetry_binaries_dir = os.path.join(parse_options.chrome_src_path,
168 self._catapult_dir = os.path.join(parse_options.chrome_src_path,
171 self._local_skp_dir = os.path.join(
173 self._local_record_webpages_archive_dir = os.path.join(
184 page_sets_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)),
186 ps = [os.path.join(page_sets_dir, page_set)
188 if not os.path.isdir(os.path.join(page_sets_dir, page_set)) and
191 os.path.join(self._chrome_page_sets_path, cr_page_set)
210 if not os.path.isfile(CREDENTIALS_FILE_PATH):
214 if not os.path.isfile(CREDENTIALS_FILE_PATH):
226 os.path.join(LOCAL_REPLAY_WEBPAGES_ARCHIVE_DIR, 'skia_*')):
237 if os.path.basename(page_set) == '__init__.py':
239 page_set_basename = os.path.basename(page_set).split('.')[0]
242 page_set.split(os.path.sep)[-1].split('.')[0] + '_*.wprgo')
243 page_set_dir = os.path.dirname(page_set)
253 os.path.join(self._telemetry_binaries_dir, 'record_wpr'),
266 for wpr_data_file in glob.glob(os.path.join(
269 os.path.join(LOCAL_REPLAY_WEBPAGES_ARCHIVE_DIR, wpr_data_file),
272 os.path.join(LOCAL_REPLAY_WEBPAGES_ARCHIVE_DIR,
294 os.path.join(self._telemetry_binaries_dir, 'run_benchmark'),
305 exclusions = PAGE_SETS_TO_EXCLUSIONS.get(os.path.basename(page_set))
342 os.path.join(self._skia_tools, 'render_pictures'),
346 os.path.join(self._skia_tools, 'render_pdfs'),
356 os.system('%s %s' % (os.path.join(self._skia_tools, 'debugger'),
398 # /path/to/skia_yahooanswers_desktop.py -> skia_yahooanswers_desktop.py
399 ps_filename = os.path.basename(page_set)
401 ps_basename, _ = os.path.splitext(ps_filename)
409 # /path/to/http___mobile_news_sandbox_pt0 -> http___mobile_news_sandbox_pt0
410 _, webpage = os.path.split(site)
415 # /path/to/skia_yahooanswers_desktop.py -> skia_yahooanswers_desktop.py
416 ps_filename = os.path.basename(page_set)
431 subdirs = glob.glob(os.path.join(TMP_SKP_DIR, '*'))
443 largest_skp = max(glob.glob(os.path.join(site, '*.skp')),
444 key=lambda path: os.stat(path).st_size)
445 dest = os.path.join(self._local_skp_dir, filename)
450 skp_size = os.path.getsize(dest)
460 if os.path.exists(d):
476 os.path.join(LOCAL_REPLAY_WEBPAGES_ARCHIVE_DIR,
517 def delete_path(self, path):
518 subprocess.check_call(['gsutil', 'rm', '-r', '/'.join((self._url, path))])
537 return os.path.isfile(os.path.join(self._base_dir, name))
538 def delete_path(self, path):
539 shutil.rmtree(path)
541 shutil.copyfile(os.path.join(self._base_dir, name), local_path)
544 if not os.path.exists(dest_dir):
547 source = os.path.join(source_dir, item)
548 dest = os.path.join(dest_dir, item)
549 if os.path.isdir(source):
553 copytree(source_dir, os.path.join(self._base_dir, dest_dir))