diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index 71cbc5763d2..63d1f7a7c30 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -192,7 +192,7 @@ void createVenv(const FilePath &python, bool isVenvPython(const FilePath &python) { - return python.parentDir().parentDir().contains("pyvenv.cfg"); + return python.parentDir().parentDir().pathAppended("pyvenv.cfg").exists(); } bool venvIsUsable(const FilePath &python)