Christophe de Vienne wrote: > Hi Charles, > > I am interested in your graphviz extension, and willing to give a hand > to improve it if needed. > > Before digging into it to fix the image path problem that was > mentioned before, I would like to know if you made any change on it > and have a more recent version to share ? >
Christophe, Thank you for your interest! The most recent version is datestamped September 12, and the only difference from the version posted appears to be removing app.builder.imgpath from the candidate filenames; I haven't had the opportunity to do a more complete refactoring to properly resolve the issue. As such, any assistance you might offer would be gratefully accepted. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
--- graphviz.py.old 2008-10-21 12:40:36.000000000 -0500 +++ graphviz.py 2008-09-12 08:15:46.000000000 -0500 @@ -50,14 +50,14 @@ graphviz_process.wait() relfn = '_images/graphviz/%s' % (filename,) newnode = nodes.image() - newnode['candidates'] = dict( [ (format_mime, '%s.%s' % (relfn, format_ext)) for (format_mime, format_ext) in _output_formats.iteritems() ] ) + newnode['candidates'] = dict( [ (format_mime, '%s/%s.%s' % (app.builder.imgpath, relfn, format_ext)) for (format_mime, format_ext) in _output_formats.iteritems() ] ) # build PDF output from the previously generated postscript Popen([ getattr(app.builder.config, 'graphviz_ps2pdf', 'ps2pdf'), '%s.ps' % (outfn,), '%s.pdf' % (outfn,) ]).wait() - newnode['candidates']['application/pdf'] = '%s.pdf' % (outfn,) + newnode['candidates']['application/pdf'] = '%s/%s.pdf' % (app.builder.imgpath, outfn,) # and that's all, folks! node.replace_self(newnode) except Exception, err: