mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
fix import of version in docs/conf.py and setup.py
This commit is contained in:
parent
f357adcd9a
commit
eecccac106
@ -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 -----------------------------------------------------
|
||||
|
||||
|
3
setup.py
3
setup.py
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user