Skip to content
Snippets Groups Projects
Commit 4fc57b5b authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

docs rtd fix

parent 0eb05f65
No related merge requests found
......@@ -18,6 +18,13 @@ import os
import re
import textwrap
import logging
import subprocess
# Added by tim
import keras # to avoid "Using Tensorflow" message later
if os.environ.get("READTHEDOCS"):
# For rtd builds, call "make generate" first.
subprocess.check_call("make generate", shell=True)
# Hack added by tim for bug in autoprogram extension under Python 2.
from sphinx.util.pycompat import indent # pylint: disable=import-error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment