Backup variables should be preserved to be able to deactivate (PY-21560)
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Sat, 26 Nov 2016 23:22:47 +0000 (00:22 +0100)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Sat, 26 Nov 2016 23:22:47 +0000 (00:22 +0100)
python/python-terminal/src/com/jetbrains/python/sdk/PyVirtualEnvTerminalCustomizer.kt

index 102fd77f7c3a48bc308fb7f15b9dea4afa42e280..ce65647e13b587eb06bf1177c856cecef30d13f7 100644 (file)
@@ -59,7 +59,7 @@ class PyVirtualEnvTerminalCustomizer : LocalTerminalCustomizer() {
           val reader = PyVirtualEnvReader(path)
           reader.activate?.let {
             envs.putAll(reader.readShellEnv().mapKeys { k -> k.key.toUpperCase() }.filterKeys { k ->
-              k in arrayOf("PATH", "PS1", "VIRTUAL_ENV", "PYTHONHOME", "PROMPT")
+              k in arrayOf("PATH", "PS1", "VIRTUAL_ENV", "PYTHONHOME", "PROMPT", "_OLD_VIRTUAL_PROMPT", "_OLD_VIRTUAL_PYTHONHOME", "_OLD_VIRTUAL_PATH")
             })
           }
         }