'Path' env variable on windows to uppercase (PY-21510)

This commit is contained in:
Dmitry Trofimov
2016-11-19 14:49:11 +01:00
parent 5128d234ad
commit 9382f69acd

View File

@@ -53,7 +53,7 @@ class PyVirtualEnvTerminalCustomizer : LocalTerminalCustomizer() {
//for other shells we read envs from activate script by the default shell and pass them to the process
val reader = PyVirtualEnvReader(path)
reader.activate?.let {
envs.putAll(reader.readShellEnv().filterKeys { k -> k in arrayOf("PATH", "PS1", "VIRTUAL_ENV", "PYTHONHOME", "PROMPT") })
envs.putAll(reader.readShellEnv().mapKeys { k-> k.key.toUpperCase() }.filterKeys { k -> k in arrayOf("PATH", "PS1", "VIRTUAL_ENV", "PYTHONHOME", "PROMPT") })
}
}
}