'Path' env variable on windows to uppercase (PY-21510) appcode/171.1113 clion/171.1114
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Sat, 19 Nov 2016 13:49:11 +0000 (14:49 +0100)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Sat, 19 Nov 2016 13:49:11 +0000 (14:49 +0100)
python/python-terminal/src/com/jetbrains/python/sdk/PyVirtualEnvTerminalCustomizer.kt

index 35cf284455c68cf4b93e124612b0adfc40f4ff2b..622580abbda94ad6ec531ed6a30330263081dd1b 100644 (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") })
           }
         }
       }