1. Luke Plant
  2. django-anonymizer


Luke Plant  committed 1e5cf91

Fixed building of docs with Sphinx running under Python 2.6

  • Participants
  • Parent commits bd25a0c
  • Branches default

Comments (0)

Files changed (1)

File docs/conf.py

View file
 #sys.path.insert(0, os.path.abspath('../'))
 # To be able to find source and dependencies, we must include the virtualenv
-venv = os.path.join(os.environ['HOME'], ".virtualenvs/anonymizer/bin/activate_this.py")
+venv = os.path.join(os.environ['HOME'],
+                    ".virtualenvs/anonymizer_%d%d/bin/activate_this.py" %
+                    sys.version_info[0:2])
 if os.path.exists(venv):
     execfile(venv, dict(__file__=venv))