Inlined PyPackageManager.getInstalledPackage(String)

This commit is contained in:
Andrey Vlasovskikh
2014-09-10 15:26:53 +04:00
parent ef7bb76718
commit 26373e942d
8 changed files with 11 additions and 19 deletions

View File

@@ -49,7 +49,7 @@ public class RestPythonUtil {
if (sdk != null) {
PyPackageManager manager = PyPackageManager.getInstance(sdk);
try {
final PyPackage sphinx = manager.findInstalledPackage("Sphinx");
final PyPackage sphinx = manager.findInstalledPackage("Sphinx", false);
presentation.setEnabled(sphinx != null);
}
catch (PyExternalProcessException ignored) {