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