Home
last modified time | relevance | path

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

/external/chromium-trace/trace-viewer/tracing/third_party/tvcm/tvcm/
Dresource_loader.py51 def FindResourceGivenAbsolutePath(self, absolute_path, binary=False): argument
55 if absolute_path.startswith(source_path):
63 return resource_module.Resource(longest_candidate, absolute_path, binary)
67 absolute_path = None
69 absolute_path = os.path.join(script_path, relative_path)
70 if os.path.exists(absolute_path):
71 return resource_module.Resource(script_path, absolute_path, binary)
93 return _read_file(resource.absolute_path)
136 if resource.absolute_path.endswith('.js'):
159 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
42 dependent_filenames.append(i.resource.absolute_path)
55 ext = os.path.splitext(image.absolute_path)[1]
66 dependent_filenames.append(i.resource.absolute_path)
102 return self.resource.absolute_path
119 dependent_filenames.append(self.resource.absolute_path)
134 module_dirname = os.path.dirname(self.resource.absolute_path)
Dhtml_module_unittest.py20 def __init__(self, toplevel_dir, absolute_path, fake_contents): argument
26 super(ResourceWithFakeContents, self).__init__(toplevel_dir, absolute_path)
44 def FindResourceGivenAbsolutePath(self, absolute_path): argument
47 if absolute_path.startswith(source_path):
57 longest_candidate, absolute_path,
58 self._file_contents.get(absolute_path, None))
61 absolute_path = None
63 absolute_path = os.path.join(script_path, relative_path)
64 if absolute_path in self._file_contents:
65 return ResourceWithFakeContents(script_path, absolute_path,
[all …]
Dmodule.py132 return self.resource.absolute_path
241 dependent_filenames.append(self.resource.absolute_path)
244 dependent_filenames.append(raw_script.resource.absolute_path)
258 return self.resource.absolute_path
Dhtml_module.py23 return os.path.dirname(self.resource.absolute_path)
45 os.path.relpath(self.resource.absolute_path))
87 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/trace-viewer/tracing/
Dtracing_project.py98 if self.IsD8CompatibleFile(x.absolute_path)]