aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r--src/plugins/python/pythonutils.cpp2
1 files changed, 1 insertions, 1 deletions
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)