From 111b35b27f5a1008c7bf692f16c40a487a7bd950 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Thu, 11 Jan 2007 15:18:15 +0100 Subject: [PATCH] create .html before working on images. This speeds up viewing HTML with large changes --- buildscripts/output-distance.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/buildscripts/output-distance.py b/buildscripts/output-distance.py index 374f7695db..54a1c00524 100644 --- a/buildscripts/output-distance.py +++ b/buildscripts/output-distance.py @@ -383,8 +383,6 @@ class FileLink: return self.file_names[oldnew] def html_record_string (self, dest_dir): - self.link_files_for_html (dest_dir) - dist = self.distance() details = self.get_distance_details () @@ -392,7 +390,7 @@ class FileLink: details_base = os.path.splitext (self.file_names[1])[0] details_base += '.details.html' fn = dest_dir + '/' + details_base - open (fn, 'w').write (details) + open_write_file (fn).write (details) details = '
(details)' % locals () @@ -931,7 +929,12 @@ class ComparisonData: dest_file = dest_dir + '/index.html' open_write_file (dest_file).write (html) + + + for link in changed: + link.link_files_for_html (dest_dir) + def print_results (self, threshold): self.write_text_result_page ('', threshold) -- 2.39.2