File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,14 @@ def run():
4343 fn , fext = os .path .splitext (file )
4444 if fext != ".png" :
4545 continue
46+ # Always use / for URLs.
4647 if "-failed-diff" in fn :
47- pictures [fn [:- 12 ]]["f" ] = os . path . join (subdir , file )
48+ pictures [fn [:- 12 ]]["f" ] = "/" . join (( subdir , file ) )
4849 elif "-expected" in fn :
49- pictures [fn [:- 9 ]]["e" ] = os . path . join (subdir , file )
50+ pictures [fn [:- 9 ]]["e" ] = "/" . join (( subdir , file ) )
5051 else :
51- pictures [fn ]["c" ] = os . path . join (subdir , file )
52-
52+ pictures [fn ]["c" ] = "/" . join (( subdir , file ) )
53+
5354 _body += "<h2>{0}</h2>" .format (subdir )
5455 _body += "<table>\n <thead><td>name</td><td>actual</td><td>expected</td><td>diff</td></thead>\n "
5556 for name , test in six .iteritems (pictures ):
You can’t perform that action at this time.
0 commit comments