210
210
ext = filename.split('.')[-1]
211
211
output = dot_output(relations, ranking)
212
213
if antialias and ext in RSVG_OUTPUT_TYPES:
214
216
invoke_dot_aa(output, filename, ext)
216
219
raise BzrCommandError("Can't find 'dot'. Please ensure Graphviz"\
217
220
" is installed correctly.")
223
227
invoke_dot(output, filename, ext)
225
230
raise BzrCommandError("Can't find 'dot'. Please ensure Graphviz"\
226
231
" is installed correctly, or use --noantialias")
228
233
my_file = file(filename, 'wb')
232
237
print "Unknown file extension: %s" % ext