mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-15718 IPython Notebook: invalid project selected as serving directory in multi-project structure
This commit is contained in:
@@ -14,6 +14,7 @@ import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.options.ShowSettingsUtil;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.roots.ModuleRootManager;
|
||||
import com.intellij.openapi.roots.ProjectFileIndex;
|
||||
import com.intellij.openapi.ui.InputValidator;
|
||||
import com.intellij.openapi.ui.MessageType;
|
||||
@@ -311,7 +312,8 @@ public final class IpnbConnectionManager implements ProjectComponent {
|
||||
parameters.add("--port");
|
||||
parameters.add(hostPort.getSecond());
|
||||
}
|
||||
final GeneralCommandLine commandLine = new GeneralCommandLine(parameters).withWorkDirectory(myProject.getBasePath());
|
||||
final String baseDir = ModuleRootManager.getInstance(module).getContentRoots()[0].getCanonicalPath();
|
||||
final GeneralCommandLine commandLine = new GeneralCommandLine(parameters).withWorkDirectory(baseDir);
|
||||
if (env != null) {
|
||||
commandLine.withEnvironment(env);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user