diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp index ce6af38ef25..8f7537c8b77 100644 --- a/src/plugins/python/pythonsettings.cpp +++ b/src/plugins/python/pythonsettings.cpp @@ -930,7 +930,7 @@ QList PythonSettings::detectPythonVenvs(const FilePath &path) dir.cdUp(); } } - } while (dir.cdUp()); + } while (dir.cdUp() && !(dir.isRoot() && Utils::HostOsInfo::isAnyUnixHost())); } return result; }