Fix #8094: texinfo: images on the different directory with document are not copied

This commit is contained in:
Takeshi KOMIYA
2020-12-27 14:51:17 +09:00
parent 4fc93ac13c
commit 703813a8c1
2 changed files with 4 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ Bugs fixed
* #741: autodoc: inherited-members doesn't work for instance attributes on super
class
* #8094: texinfo: image files on the different directory with document are not
copied
Testing
--------

View File

@@ -179,7 +179,8 @@ class TexinfoBuilder(Builder):
try:
imagedir = path.join(self.outdir, targetname + '-figures')
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:
logger.warning(__('cannot copy image file %r: %s'),
path.join(self.srcdir, src), err)