diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp index 839d3f44517..be1ad7b4ee9 100644 --- a/src/plugins/python/pythonsettings.cpp +++ b/src/plugins/python/pythonsettings.cpp @@ -287,6 +287,9 @@ Interpreter interpreterForPythonExecutable(const FilePath &python, name = defaultName; if (windowedSuffix) name += " (Windowed)"; + QDir pythonDir(python.parentDir().toString()); + if (pythonDir.exists() && pythonDir.exists("activate") && pythonDir.cdUp()) + name += QString(" (%1 Virtual Environment)").arg(pythonDir.dirName()); return Interpreter{QUuid::createUuid().toString(), name, python}; }