mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
PY-31400 Jupyter: support get envs for Notebook export
GitOrigin-RevId: 0d4f3959e20e0bfbd51236333c24f69eccc7785a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c71ff7773d
commit
886b4f0716
@@ -19,6 +19,7 @@ import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.vfs.LocalFileSystem;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.EnvironmentUtil;
|
||||
import com.intellij.util.ObjectUtils;
|
||||
import com.jetbrains.python.PySdkBundle;
|
||||
import com.jetbrains.python.psi.LanguageLevel;
|
||||
@@ -124,7 +125,7 @@ public final class PySdkUtil {
|
||||
if (homePath == null || !new File(homePath).exists()) {
|
||||
return new ProcessOutput();
|
||||
}
|
||||
final Map<String, String> systemEnv = System.getenv();
|
||||
final Map<String, String> systemEnv = EnvironmentUtil.getEnvironmentMap();
|
||||
final Map<String, String> expandedCmdEnv = mergeEnvVariables(systemEnv, cmd.getEnvironment());
|
||||
final Map<String, String> env = extraEnv != null ? mergeEnvVariables(expandedCmdEnv, extraEnv) : expandedCmdEnv;
|
||||
PythonEnvUtil.resetHomePathChanges(homePath, env);
|
||||
|
||||
Reference in New Issue
Block a user