forked from qt-creator/qt-creator
		
	Python: Add virtual env name to auto detected interpreters
Change-Id: Ia4d2e5399aa983b6bca510ca8b0e6848da5f769a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
This commit is contained in:
		@@ -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};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user