diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-03-15 11:57:18 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-03-15 11:54:04 +0000 |
commit | 206b75e242143547bce3510dc0ffd54b4769445b (patch) | |
tree | fcc936e410b8ca9b648df0271ec39bdd7119d492 /setup.py | |
parent | b0b3e47f79532039f6a3824622687759459bef8b (diff) |
Fix error when invoking python setup.py without being in the same dir
Task-number: PYSIDE-630
Change-Id: I1c707061b29d54bffc132909caaaa2e1b93b4d12
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -235,7 +235,7 @@ def check_allowed_python_version(): import re pattern = "'Programming Language :: Python :: (\d+)\.(\d+)'" supported = [] - with open(__file__) as setup: + with open(this_file) as setup: for line in setup.readlines(): found = re.search(pattern, line) if found: |