diff options
author | Simon Warta <[email protected]> | 2017-10-19 09:41:21 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-10-19 09:41:21 +0200 |
commit | c4ba92a457825276340eb448528d6d5a09e18009 (patch) | |
tree | bae06131c279e7a64543ff8749e4c2f265d02f82 /configure.py | |
parent | 8258550225d198a3f1f9791d5fc5ce8511dfeb3e (diff) |
Use __file__ to detect project root
otherwise the module "configure" cannot be imported by the tests anymore
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py index a4d2eadf0..e7d900e33 100755 --- a/configure.py +++ b/configure.py @@ -83,7 +83,7 @@ class Version(object): @staticmethod def get_data(): if not Version.data: - root_dir = os.path.dirname(sys.argv[0]) + root_dir = os.path.dirname(os.path.realpath(__file__)) Version.data = parse_version_file(os.path.join(root_dir, 'version.txt')) return Version.data |