diff --git a/plugins/evaluation-plugin/languages/python/src/com/intellij/cce/python/evaluation/SetupPythonInterpreterStep.kt b/plugins/evaluation-plugin/languages/python/src/com/intellij/cce/python/evaluation/SetupPythonInterpreterStep.kt index fd15ae3b3b74..b1184073450b 100644 --- a/plugins/evaluation-plugin/languages/python/src/com/intellij/cce/python/evaluation/SetupPythonInterpreterStep.kt +++ b/plugins/evaluation-plugin/languages/python/src/com/intellij/cce/python/evaluation/SetupPythonInterpreterStep.kt @@ -130,6 +130,9 @@ private class SetupPythonInterpreterStep( for (module in ModuleManager.getInstance(project).modules) { PyProjectSdkConfiguration.setReadyToUseSdk(project, module, sdk) } + if (ProjectRootManager.getInstance(project).projectSdk == null) { + ProjectRootManager.getInstance(project).projectSdk = sdk + } } println("Python interpreter \"${sdk.name}\" (${sdk.homePath}) will be used as a project SDK") resultSdk = sdk