[evaluation-plugin] Set python sdk by force if it hasn't yet during module configuration

GitOrigin-RevId: 4e3605ff817ce8afbe40b6bc48f97c5686796f5f
This commit is contained in:
Roman Vasiliev
2025-04-25 14:58:56 +00:00
committed by intellij-monorepo-bot
parent 7127d2f801
commit 77f4d62b64
@@ -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