diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2012-10-28 18:18:09 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2012-10-28 18:18:09 -0300 |
| commit | 0b98ef632147a26f2430a3ede48d9e58983cc3ae (patch) | |
| tree | a70e53887ea63664d11ee4f666bb5e45ee8753f1 /docs | |
| parent | b4420d96023b9d9067ebc8e8dcd8ca7cea41aff1 (diff) | |
Ensure that version detection in docs from 373df56d uses the right Django copy.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index 6dd84cffba..ced3fef5f7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,12 +14,15 @@ from __future__ import unicode_literals import sys -import os +from os.path import abspath, dirname, join + +# Make sure we use this copy of Django +sys.path.insert(1, abspath(dirname(dirname(__file__)))) # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "_ext"))) +sys.path.append(abspath(join(dirname(__file__), "_ext"))) # -- General configuration ----------------------------------------------------- |
