fix import of version in docs/conf.py and setup.py

This commit is contained in:
kakwa 2017-04-06 20:46:58 +02:00
parent f357adcd9a
commit eecccac106
2 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,9 @@ MOCK_MODULES = ['ldap']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('../ldapcherry'))
from ldapcherry.version import version
from version import version
# -- General configuration -----------------------------------------------------

View File

@ -17,7 +17,8 @@ data_dir = os.path.join(datarootdir, 'ldapcherry')
config_dir = os.path.join(sysconfdir, 'ldapcherry')
small_description = 'A simple web application to manage Ldap entries'
from ldapcherry.version import version
sys.path.append('ldapcherry/')
from version import version
# change requirements according to python version
if sys.version_info[0] == 2: