1 from djangosphinx.constants import *
4 from sphinxapi import *
5 except ImportError, exc:
6 name = 'djangosphinx.apis.api%d' % (SPHINX_API_VERSION,)
7 sphinxapi = __import__(name)
8 for name in name.split('.')[1:]:
9 sphinxapi = getattr(sphinxapi, name)
10 for attr in dir(sphinxapi):
11 globals()[attr] = getattr(sphinxapi, attr)