diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp index ca5e58f8c28..01dcf671a15 100644 --- a/src/plugins/python/pythonsettings.cpp +++ b/src/plugins/python/pythonsettings.cpp @@ -405,6 +405,9 @@ static void addPythonsFromPath(QList &pythons) if (HostOsInfo::isWindowsHost()) { for (const FilePath &executable : env.findAllInPath("python")) { + // Windows creates empty redirector files that may interfere + if (executable.toFileInfo().size() == 0) + continue; if (executable.exists() && !alreadyRegistered(pythons, executable)) pythons << Interpreter(executable, "Python from Path"); }