mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Changed (again) technique to get version IDs shown in docs from source code.
Hopefully it will fix the problem with the documentation building server that caused a wrong Django version to be reported in the HTML zipball docs edition. Follow-up to commits373df56
and0b98ef6
.
This commit is contained in:
parent
612357f8ef
commit
f3a0ecc9ee
@ -16,8 +16,8 @@ from __future__ import unicode_literals
|
||||
import sys
|
||||
from os.path import abspath, dirname, join
|
||||
|
||||
# Make sure we use this copy of Django
|
||||
sys.path.insert(1, abspath(dirname(dirname(__file__))))
|
||||
# Make sure we iget the version of this copy of Django
|
||||
sys.path.insert(1, dirname(dirname(abspath(__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
|
||||
|
Loading…
Reference in New Issue
Block a user