Show More
@@ -419,8 +419,8 b' class EmbeddedSphinxShell(object):' | |||||
419 | # insert relative path to image file in source |
|
419 | # insert relative path to image file in source | |
420 | # as absolute path for Sphinx |
|
420 | # as absolute path for Sphinx | |
421 | # sphinx expects a posix path, even on Windows |
|
421 | # sphinx expects a posix path, even on Windows | |
422 |
|
|
422 | path = pathlib.Path(savefig_dir, filename) | |
423 |
outfile = '/' + |
|
423 | outfile = '/' + path.relative_to(source_dir).as_posix() | |
424 |
|
424 | |||
425 | imagerows = ['.. image:: %s' % outfile] |
|
425 | imagerows = ['.. image:: %s' % outfile] | |
426 |
|
426 |
General Comments 0
You need to be logged in to leave comments.
Login now