File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
19
19
WIN = sys .platform == "win32"
20
20
21
-
22
- if WIN :
21
+ if WIN and "CODEQL_EXTRACTOR_PYTHON_OPTION_PYTHON_EXECUTABLE_NAME" not in os .environ :
23
22
# installing `py` launcher is optional when installing Python on windows, so it's
24
23
# possible that the user did not install it, see
25
24
# https://github.com/github/codeql-cli-binaries/issues/125#issuecomment-1157429430
26
- # so we check whether it has been installed. Newer versions have a `--list` option,
25
+ # so we check whether it has been installed, and we check only if the "python_executable_name"
26
+ # extractor option has not been specified. Newer versions have a `--list` option,
27
27
# but that has only been mentioned in the docs since 3.9, so to not risk it not
28
28
# working on potential older versions, we'll just use `py --version` which forwards
29
29
# the `--version` argument to the default python executable.
You can’t perform that action at this time.
0 commit comments