summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2022-05-23 16:04:26 (GMT)
committerGitHub <noreply@github.com>2022-05-23 16:04:26 (GMT)
commit949dbf97ba09da3cfb243d5ad7f90967ad15f354 (patch)
tree984927f8beabfdb51e788de276d29ee05e6f0980 /PC
parentd5f0dd160011826f0196d220aefc29d2ce497428 (diff)
downloadcpython-949dbf97ba09da3cfb243d5ad7f90967ad15f354.zip
cpython-949dbf97ba09da3cfb243d5ad7f90967ad15f354.tar.gz
cpython-949dbf97ba09da3cfb243d5ad7f90967ad15f354.tar.bz2
gh-93005: Fixes launcher test when no Python install is available (GH-93007)
Diffstat (limited to 'PC')
-rw-r--r--PC/launcher2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/PC/launcher2.c b/PC/launcher2.c
index 763bc13..ae11f4f 100644
--- a/PC/launcher2.c
+++ b/PC/launcher2.c
@@ -972,9 +972,6 @@ checkDefaults(SearchInfo *search)
if (!slash) {
search->tag = tag;
search->tagLength = n;
- // gh-92817: allow a high priority env to be selected even if it
- // doesn't match the tag
- search->lowPriorityTag = true;
} else {
search->company = tag;
search->companyLength = (int)(slash - tag);
@@ -982,6 +979,9 @@ checkDefaults(SearchInfo *search)
search->tagLength = n - (search->companyLength + 1);
search->oldStyleTag = false;
}
+ // gh-92817: allow a high priority env to be selected even if it
+ // doesn't match the tag
+ search->lowPriorityTag = true;
}
return 0;