From 8ae6a318e58101f697fb2914a09e019439a045f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?xavier=20dupr=C3=A9?= Date: Fri, 22 Dec 2017 19:24:51 +0100 Subject: [PATCH] update image path --- _doc/examples/plot_rest_api_search_images.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_doc/examples/plot_rest_api_search_images.py b/_doc/examples/plot_rest_api_search_images.py index 66a0b53..675db85 100644 --- a/_doc/examples/plot_rest_api_search_images.py +++ b/_doc/examples/plot_rest_api_search_images.py @@ -160,6 +160,9 @@ def path_module(mod): txts = list(map(lambda x: str(x[0]), res)) imgs = list(map(lambda x: os.path.join( 'temp_scripts', 'images', x[1]), res)) + if not os.path.exists(imgs[0]): + imgs = list(map(lambda x: os.path.join( + 'images', x[1]), res)) from mlinsights.plotting import plot_gallery_images plot_gallery_images(imgs, txts)