Home
last modified time | relevance | path

Searched refs:absolute_path (Results 1 – 16 of 16) sorted by relevance

/external/chromium-trace/catapult/third_party/py_vulcanize/py_vulcanize/
Dresource_loader.py52 def FindResourceGivenAbsolutePath(self, absolute_path, binary=False): argument
56 if absolute_path.startswith(source_path):
64 return resource_module.Resource(longest_candidate, absolute_path, binary)
68 absolute_path = None
70 absolute_path = os.path.join(script_path, relative_path)
71 if os.path.exists(absolute_path):
72 return resource_module.Resource(script_path, absolute_path, binary)
94 return _read_file(resource.absolute_path)
137 if resource.absolute_path.endswith('.js'):
161 if resource.absolute_path in self.loaded_raw_scripts:
[all …]
Dresource.py14 def __init__(self, toplevel_dir, absolute_path, binary=False): argument
16 self.absolute_path = absolute_path
23 return os.path.relpath(self.absolute_path, self.toplevel_dir)
49 if not os.path.exists(self.absolute_path):
50 raise Exception('%s not found.' % self.absolute_path)
52 f = open(self.absolute_path, mode='rb')
54 f = codecs.open(self.absolute_path, mode='r', encoding='utf-8')
Dstyle_sheet.py21 def absolute_path(self): member in Image
22 return self.resource.absolute_path
43 dependent_filenames.append(i.resource.absolute_path)
56 ext = os.path.splitext(image.absolute_path)[1]
67 dependent_filenames.append(i.resource.absolute_path)
104 return self.resource.absolute_path
121 dependent_filenames.append(self.resource.absolute_path)
136 module_dirname = os.path.dirname(self.resource.absolute_path)
Dhtml_module_unittest.py21 def __init__(self, toplevel_dir, absolute_path, fake_contents): argument
27 super(ResourceWithFakeContents, self).__init__(toplevel_dir, absolute_path)
46 def FindResourceGivenAbsolutePath(self, absolute_path): argument
49 if absolute_path.startswith(source_path):
59 longest_candidate, absolute_path,
60 self._file_contents.get(absolute_path, None))
63 absolute_path = None
65 absolute_path = os.path.join(script_path, relative_path)
66 if absolute_path in self._file_contents:
67 return ResourceWithFakeContents(script_path, absolute_path,
[all …]
Dmodule.py132 return self.resource.absolute_path
245 dependent_filenames.append(self.resource.absolute_path)
248 dependent_filenames.append(raw_script.resource.absolute_path)
262 return self.resource.absolute_path
Dhtml_module.py23 return os.path.dirname(self.resource.absolute_path)
46 os.path.relpath(self.resource.absolute_path))
88 module_dirname = os.path.dirname(self.resource.absolute_path)
Dhtml_generation_controller.py25 module_dirname = os.path.dirname(self.current_module.resource.absolute_path)
Dstyle_sheet_unittest.py34 r0.absolute_path)
/external/chromium-trace/catapult/telemetry/telemetry/internal/util/
Dfile_handle.py12 def __init__(self, temp_file=None, absolute_path=None): argument
25 assert (absolute_path is None) != (temp_file is None)
27 self._absolute_path = absolute_path
/external/autotest/scheduler/
Ddrone_manager.py249 drone.call('initialize', self.absolute_path(''))
732 abs_working_directory = self.absolute_path(working_directory)
735 log_file = self.absolute_path(log_file)
772 path = os.path.join(self.absolute_path(execution_tag), pidfile_name)
842 def absolute_path(self, path, on_results_repository=False): member in BaseDroneManager
857 full_source = self.absolute_path(source_path)
858 full_destination = self.absolute_path(
891 drone.queue_call('write_to_file', self.absolute_path(file_path),
924 full_path = self.absolute_path(
Dsite_drone_manager.py74 drone.call('initialize', self.absolute_path(''))
Dpostjob_task.py38 self._drone_manager.absolute_path(self._working_directory()))
Dmonitor_db.py1172 _drone_manager.absolute_path(control_path)],
Dmonitor_db_functional_test.py286 def absolute_path(self, path): member in MockDroneManager
/external/chromium-trace/catapult/third_party/typ/typ/fakes/
Dhost_fake.py82 absolute_path = self.abspath(*comps)
83 if absolute_path not in sys.path:
84 sys.path.append(absolute_path)
/external/chromium-trace/catapult/third_party/typ/typ/
Dhost.py58 absolute_path = self.abspath(*comps)
59 if absolute_path not in sys.path:
60 sys.path.append(absolute_path)