diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-03-15 11:57:18 +0100 |
---|---|---|
committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2018-03-19 12:42:20 +0000 |
commit | f9cae4967ee543685729bc1af682b299144ee9d8 (patch) | |
tree | 560a1d0dacc7b8cba46d134693061ca3f9bb6dcd | |
parent | 2ae5f1d37bfe8757836a5c091a032ba94760bda0 (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>
(cherry picked from commit 206b75e242143547bce3510dc0ffd54b4769445b)
-rw-r--r-- | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -245,7 +245,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: |