final String encoding = defaultCharset != null ? defaultCharset.name() : "utf-8";
setPythonIOEncoding(setPythonUnbuffered(envs), encoding);
-
+
PythonSdkFlavor.initPythonPath(envs, true, PythonCommandLineState.getAddedPaths(sdk));
return envs;
}
private Process createRemoteConsoleProcess(PythonRemoteInterpreterManager manager, String[] command, Map<String, String> env)
throws ExecutionException {
RemoteSdkData data = (RemoteSdkData)mySdk.getSdkAdditionalData();
+ assert data != null;
GeneralCommandLine commandLine = new GeneralCommandLine(command);
+
+
commandLine.getEnvironment().putAll(env);
commandLine.getParametersList().set(1, PythonRemoteInterpreterManager.toSystemDependent(new File(data.getHelpersPath(),
myCommandLine = commandLine.getCommandLineString();
-
RemoteSshProcess remoteProcess =
manager.createRemoteProcess(getProject(), data, commandLine, true);