diff options
author | David Schulz <david.schulz@qt.io> | 2022-08-03 12:02:37 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-08-03 10:55:30 +0000 |
commit | 0a2510edcbbae049c46a27c3b486214bbd493660 (patch) | |
tree | bf2632d07ab20183a72aff49f7319731bf617e12 | |
parent | 5aa987b6a5226bd4071f6aa498e5db423cd754d8 (diff) | |
download | qt-creator-0a2510edcbbae049c46a27c3b486214bbd493660.tar.gz |
Python: skip root on venv detection
Virtual environments on the root level are uncommon and can cause issues
on some linux distros.
Fixes: QTCREATORBUG-27976
Change-Id: I266f1b321c1c2d2b4b416acf3f34ce8c1d686219
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/plugins/python/pythonsettings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp index ce6af38ef2..8f7537c8b7 100644 --- a/src/plugins/python/pythonsettings.cpp +++ b/src/plugins/python/pythonsettings.cpp @@ -930,7 +930,7 @@ QList<Interpreter> PythonSettings::detectPythonVenvs(const FilePath &path) dir.cdUp(); } } - } while (dir.cdUp()); + } while (dir.cdUp() && !(dir.isRoot() && Utils::HostOsInfo::isAnyUnixHost())); } return result; } |