Handle case where the docs say there is an image, but there isn’t.

This commit is contained in:
Robin Dunn
2016-11-11 20:00:35 -08:00
parent a7620e59bc
commit fd3ea15e0e

View File

@@ -1150,6 +1150,9 @@ class Image(Node):
image_path = os.path.normpath(os.path.join(DOXYROOT, 'images', value))
static_path = os.path.join(OVERVIEW_IMAGES_ROOT, os.path.split(image_path)[1])
if not os.path.exists(image_path):
return ''
if not os.path.isfile(static_path):
shutil.copyfile(image_path, static_path)