equal
deleted
inserted
replaced
6 from setuptools import setup |
6 from setuptools import setup |
7 |
7 |
8 ROOT_DIR = os.path.dirname(__file__) |
8 ROOT_DIR = os.path.dirname(__file__) |
9 SOURCE_DIR = os.path.join(ROOT_DIR, 'ldt') |
9 SOURCE_DIR = os.path.join(ROOT_DIR, 'ldt') |
10 |
10 |
11 version = __import__('ldt').__version__ |
11 version_variables = {} |
|
12 try: |
|
13 execfile(os.path.join(SOURCE_DIR, "__init__.py"), version_variables) |
|
14 except: |
|
15 pass |
|
16 |
|
17 version = version_variables['__version__'] |
12 |
18 |
13 def fullsplit(path, result=None): |
19 def fullsplit(path, result=None): |
14 """ |
20 """ |
15 Split a pathname into components (the opposite of os.path.join) in a |
21 Split a pathname into components (the opposite of os.path.join) in a |
16 platform-neutral way. |
22 platform-neutral way. |