From f7b90f681b754d1a49a93725d928cd1b4365ceb8 Mon Sep 17 00:00:00 2001 From: mjaworski Date: Mon, 15 Jun 2015 15:42:00 +0200 Subject: [PATCH] rtd: duct taping --- docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 59df3da..d6e913f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,8 +19,11 @@ # import solrq in order to retrieve version info import solrq +# this is quite dirty approach but we're not working at NASA and nobody can die +# because of that. Am I right? on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if on_rtd: + sys.path.append(os.path.dirname(os.path.abspath(__file__))) from convert_readme import convert_md convert_md()