X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9b97d5a2faa6f56b439dcefe9c7bb23e0a84b39c..db833ba4517084f61a64907c6d15606e7c881edd:/apps/djangosphinx/apis/current.py diff --git a/apps/djangosphinx/apis/current.py b/apps/djangosphinx/apis/current.py new file mode 100644 index 000000000..e85f4ec86 --- /dev/null +++ b/apps/djangosphinx/apis/current.py @@ -0,0 +1,11 @@ +from djangosphinx.constants import * + +try: + from sphinxapi import * +except ImportError, exc: + name = 'djangosphinx.apis.api%d' % (SPHINX_API_VERSION,) + sphinxapi = __import__(name) + for name in name.split('.')[1:]: + sphinxapi = getattr(sphinxapi, name) + for attr in dir(sphinxapi): + globals()[attr] = getattr(sphinxapi, attr)