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():
43
43
fn , fext = os .path .splitext (file )
44
44
if fext != ".png" :
45
45
continue
46
+ # Always use / for URLs.
46
47
if "-failed-diff" in fn :
47
- pictures [fn [:- 12 ]]["f" ] = os . path . join (subdir , file )
48
+ pictures [fn [:- 12 ]]["f" ] = "/" . join (( subdir , file ) )
48
49
elif "-expected" in fn :
49
- pictures [fn [:- 9 ]]["e" ] = os . path . join (subdir , file )
50
+ pictures [fn [:- 9 ]]["e" ] = "/" . join (( subdir , file ) )
50
51
else :
51
- pictures [fn ]["c" ] = os . path . join (subdir , file )
52
-
52
+ pictures [fn ]["c" ] = "/" . join (( subdir , file ) )
53
+
53
54
_body += "<h2>{0}</h2>" .format (subdir )
54
55
_body += "<table>\n <thead><td>name</td><td>actual</td><td>expected</td><td>diff</td></thead>\n "
55
56
for name , test in six .iteritems (pictures ):
You can’t perform that action at this time.
0 commit comments