aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2018-03-15 11:57:18 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2018-03-15 11:54:04 +0000
commit206b75e242143547bce3510dc0ffd54b4769445b (patch)
treefcc936e410b8ca9b648df0271ec39bdd7119d492
parentb0b3e47f79532039f6a3824622687759459bef8b (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>
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 35746e651..abc8d9e5d 100644
--- a/setup.py
+++ b/setup.py
@@ -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: