mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Handle case where the docs say there is an image, but there isn’t.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user