| changeset 84 | 91a4dafd5904 |
| parent 63 | 93325a5d61f0 |
| child 167 | fe00e7302efe |
--- a/src/ldt/setup.py Tue May 03 17:17:17 2011 +0200 +++ b/src/ldt/setup.py Tue May 03 17:20:47 2011 +0200 @@ -8,7 +8,13 @@ ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR, 'ldt') -version = __import__('ldt').__version__ +version_variables = {} +try: + execfile(os.path.join(SOURCE_DIR, "__init__.py"), version_variables) +except: + pass + +version = version_variables['__version__'] def fullsplit(path, result=None): """