Exemple #1
0
 def save_result_script(self, tool_definition, result_arguments):
     target_path = join(self.result_folder, 'x' + SCRIPT_EXTENSION)
     command = render_command(tool_definition[
         'command_template'], result_arguments)
     command_parts = [
         'cd "%s"' % tool_definition['configuration_folder'],
         format_hanging_indent(command.replace(
             '\n', ' %s\n' % COMMAND_LINE_JOIN))]
     with codecs.open(target_path, 'w', encoding='utf-8') as target_file:
         target_file.write('\n'.join(command_parts) + '\n')
     print('command_path = %s' % format_path(target_path))
     return target_path
 def show(self, file_index, message, target_path):
     print(self.template %
           (file_index, self.file_count, message,
            format_path(relpath(target_path, target_folder))))
     self.count_by_message[message] += 1
Exemple #3
0
 def show(self, file_index, message, target_path):
     print(self.template % (
         file_index, self.file_count, message,
         format_path(relpath(target_path, target_folder))))
     self.count_by_message[message] += 1