##// END OF EJS Templates
Merge pull request #12342 from blakejgriffin/sphinximage...
Matthias Bussonnier -
r25772:a2f85e9b merge
parent child Browse files
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 posix_path = pathlib.Path(savefig_dir,filename).as_posix()
422 path = pathlib.Path(savefig_dir, filename)
423 outfile = '/' + os.path.relpath(posix_path, source_dir)
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