diff --git a/python/pluginCore/resources/META-INF/plugin.xml b/python/pluginCore/resources/META-INF/plugin.xml index 187b6eadead8..ca52580f1fa5 100644 --- a/python/pluginCore/resources/META-INF/plugin.xml +++ b/python/pluginCore/resources/META-INF/plugin.xml @@ -31,10 +31,8 @@ The Python plug-in provides smart editing for Python scripts. The feature set of org.jetbrains.plugins.terminal tanvd.grazi - - - com.jetbrains.python.console.PythonConsoleRunnerFactory - com.jetbrains.python.console.PydevConsoleRunnerFactory - - + + + diff --git a/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java b/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java index 29b4ca6975c3..39ae0513c8f4 100644 --- a/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java +++ b/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java @@ -1,7 +1,7 @@ // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.python.console; -import com.intellij.openapi.components.ServiceManager; +import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.module.Module; import com.intellij.openapi.project.Project; import com.jetbrains.python.run.PythonRunConfiguration; @@ -11,7 +11,7 @@ import org.jetbrains.annotations.Nullable; public abstract class PythonConsoleRunnerFactory { @NotNull public static PythonConsoleRunnerFactory getInstance() { - return ServiceManager.getService(PythonConsoleRunnerFactory.class); + return ApplicationManager.getApplication().getService(PythonConsoleRunnerFactory.class); } @NotNull