From b2ebcc5c58a5f8f6baa0c9e0e7a70db25ef9c1d1 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 10 May 2018 10:23:16 -0400 Subject: [PATCH] Backport PR #11221: DOC: Search codex (fix import line) --- doc/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 0702da5c860d..1b5cb348d542 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -18,9 +18,6 @@ import six from glob import glob -# This is only necessary to monkey patch the signature later on. -from sphinx_gallery import gen_rst - # If your extensions are in another directory, add it here. If the directory # is relative to the documentation root, use os.path.abspath to make it # absolute, like shown here. @@ -79,6 +76,8 @@ def _check_deps(): # Import only after checking for dependencies. from sphinx_gallery.sorting import ExplicitOrder +# This is only necessary to monkey patch the signature later on. +from sphinx_gallery import gen_rst if six.PY2: from distutils.spawn import find_executable