PY-26657 PY-26749 Allow installing Python framework if a new Python environment is selected

This commit is contained in:
Andrey Vlasovskikh
2017-10-31 19:47:35 +03:00
parent fe82d863ca
commit 5e6888ba02
@@ -182,7 +182,10 @@ public class ProjectSpecificSettingsStep<T> extends ProjectSettingsStepBase<T> i
final PythonProjectGenerator generator = ObjectUtils.tryCast(myProjectGenerator, PythonProjectGenerator.class);
final Sdk sdk = getInterpreterPanelSdk();
if (generator == null || sdk == null) return true;
if (generator == null || sdk == null) {
myInstallFramework = true;
return true;
}
try {
generator.checkProjectCanBeCreatedOnSdk(sdk, new File(myLocationField.getText()));