summaryrefslogtreecommitdiff
path: root/python/src/com/jetbrains/python/run/PythonCommandLineState.java
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/com/jetbrains/python/run/PythonCommandLineState.java')
-rw-r--r--python/src/com/jetbrains/python/run/PythonCommandLineState.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/python/src/com/jetbrains/python/run/PythonCommandLineState.java b/python/src/com/jetbrains/python/run/PythonCommandLineState.java
index a4d1718bb006..220939efc274 100644
--- a/python/src/com/jetbrains/python/run/PythonCommandLineState.java
+++ b/python/src/com/jetbrains/python/run/PythonCommandLineState.java
@@ -87,7 +87,7 @@ public abstract class PythonCommandLineState extends CommandLineState {
private Boolean myMultiprocessDebug = null;
public boolean isDebug() {
- return PyDebugRunner.PY_DEBUG_RUNNER.equals(getEnvironment().getRunnerId());
+ return PyDebugRunner.PY_DEBUG_RUNNER.equals(getEnvironment().getRunner().getRunnerId());
}
public static ServerSocket createServerSocket() throws ExecutionException {
@@ -171,23 +171,13 @@ public abstract class PythonCommandLineState extends CommandLineState {
* @throws ExecutionException
*/
protected ProcessHandler startProcess(CommandLinePatcher... patchers) throws ExecutionException {
-
-
GeneralCommandLine commandLine = generateCommandLine(patchers);
// Extend command line
- RunnerSettings runnerSettings = getRunnerSettings();
- String runnerId = getEnvironment().getRunnerId();
- if (runnerId != null) {
- PythonRunConfigurationExtensionsManager.getInstance().patchCommandLine(myConfig, runnerSettings, commandLine, runnerId);
- }
-
+ PythonRunConfigurationExtensionsManager.getInstance().patchCommandLine(myConfig, getRunnerSettings(), commandLine, getEnvironment().getRunner().getRunnerId());
Sdk sdk = PythonSdkType.findSdkByPath(myConfig.getInterpreterPath());
-
-
final ProcessHandler processHandler;
if (PySdkUtil.isRemote(sdk)) {
- assert sdk != null;
processHandler =
createRemoteProcessStarter().startRemoteProcess(sdk, commandLine, myConfig.getProject(), myConfig.getMappingSettings());
}