Merge pull request #8598 from tk0miya/8094_texinfo_images_not_copied

Fix #8094: texinfo: images on the different directory with document are not copied
This commit is contained in:
Takeshi KOMIYA 2020-12-28 17:24:23 +09:00 committed by GitHub
commit 91fa0ceb22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,8 @@ Bugs fixed
class class
* #8592: autodoc: ``:meta public:`` does not effect to variables * #8592: autodoc: ``:meta public:`` does not effect to variables
* #8594: autodoc: empty __all__ attribute is ignored * #8594: autodoc: empty __all__ attribute is ignored
* #8094: texinfo: image files on the different directory with document are not
copied
Testing Testing
-------- --------

View File

@ -179,7 +179,8 @@ class TexinfoBuilder(Builder):
try: try:
imagedir = path.join(self.outdir, targetname + '-figures') imagedir = path.join(self.outdir, targetname + '-figures')
ensuredir(imagedir) ensuredir(imagedir)
copy_asset_file(path.join(self.srcdir, dest), imagedir) copy_asset_file(path.join(self.srcdir, src),
path.join(imagedir, dest))
except Exception as err: except Exception as err:
logger.warning(__('cannot copy image file %r: %s'), logger.warning(__('cannot copy image file %r: %s'),
path.join(self.srcdir, src), err) path.join(self.srcdir, src), err)