Skip to content

Commit 0555a6c

Browse files
committed
Launcher: Skip find python in Registry for mingw builds
1 parent acea4c0 commit 0555a6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PC/launcher.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ locate_all_pythons(void)
499499
{
500500
/* venv Python is highest priority */
501501
locate_venv_python();
502+
#ifndef __MINGW32__
502503
#if defined(_M_X64)
503504
/* If we are a 64bit process, first hit the 32bit keys. */
504505
debug(L"locating Pythons in 32bit registry\n");
@@ -519,6 +520,7 @@ locate_all_pythons(void)
519520
locate_pythons_for_key(HKEY_LOCAL_MACHINE, KEY_READ);
520521
/* Store-installed Python is lowest priority */
521522
locate_store_pythons();
523+
#endif
522524
qsort(installed_pythons, num_installed_pythons, sizeof(INSTALLED_PYTHON),
523525
compare_pythons);
524526
}

0 commit comments

Comments
 (0)