diff --git a/python/ide/src/com/jetbrains/python/configuration/PyActiveSdkConfigurable.java b/python/ide/src/com/jetbrains/python/configuration/PyActiveSdkConfigurable.java index de63179c64d5..16d87e554aa1 100644 --- a/python/ide/src/com/jetbrains/python/configuration/PyActiveSdkConfigurable.java +++ b/python/ide/src/com/jetbrains/python/configuration/PyActiveSdkConfigurable.java @@ -145,7 +145,7 @@ public class PyActiveSdkConfigurable implements UnnamedConfigurable { dialog.show(); return; } - if (!PySdkListCellRenderer.SEPARATOR.equals(item.toString())) + if (!PySdkListCellRenderer.SEPARATOR.equals(item)) super.setSelectedItem(item); } }; diff --git a/python/src/com/jetbrains/python/sdk/PyDetectedSdk.java b/python/src/com/jetbrains/python/sdk/PyDetectedSdk.java index 7abc06d68caf..4b5d0e2f5529 100644 --- a/python/src/com/jetbrains/python/sdk/PyDetectedSdk.java +++ b/python/src/com/jetbrains/python/sdk/PyDetectedSdk.java @@ -6,6 +6,7 @@ import com.intellij.openapi.projectRoots.impl.ProjectJdkImpl; public class PyDetectedSdk extends ProjectJdkImpl { public PyDetectedSdk(String name, SdkTypeId sdkType) { super(name, sdkType); + setHomePath(name); } }