diff --git a/python/src/com/jetbrains/python/target/PythonLanguageRuntimeUI.kt b/python/src/com/jetbrains/python/target/PythonLanguageRuntimeUI.kt index f1e37260e5c3..f79fb869c230 100644 --- a/python/src/com/jetbrains/python/target/PythonLanguageRuntimeUI.kt +++ b/python/src/com/jetbrains/python/target/PythonLanguageRuntimeUI.kt @@ -28,6 +28,7 @@ import com.jetbrains.python.sdk.ModuleOrProject import com.jetbrains.python.sdk.add.collector.PythonNewInterpreterAddedCollector import com.jetbrains.python.sdk.add.v2.* import com.jetbrains.python.sdk.configurePythonSdk +import com.jetbrains.python.sdk.service.PySdkService.Companion.pySdkService import com.jetbrains.python.util.ShowingMessageErrorSync import kotlinx.coroutines.supervisorScope import java.awt.Dimension @@ -113,6 +114,7 @@ class PythonLanguageRuntimeUI( sdk?.let { configurePythonSdk(project, module, it) + project.pySdkService.persistSdk(it) PythonNewInterpreterAddedCollector.logPythonNewInterpreterAdded(it, false) }