Lines Matching refs:from_path
387 from_path = key
388 if not os.path.isfile(from_path):
389 log_warning("can't find source file for path %s" % from_path)
391 if from_path.startswith('/'):
392 to_path = os.path.join(dest_dir, from_path[1:])
393 elif is_windows() and ':\\' in from_path:
394 to_path = os.path.join(dest_dir, from_path.replace(':\\', os.sep))
396 to_path = os.path.join(dest_dir, from_path)
397 is_java = from_path.endswith('.java')
398 self._annotate_file(from_path, to_path, self.file_periods[key], is_java)
400 def _annotate_file(self, from_path, to_path, file_period, is_java): argument
409 log_info('annotate file %s' % from_path)
410 with open(from_path, 'r') as rf: