Fix prompt in virtualenv auto activisation on Windows (PY-21452)

This commit is contained in:
Dmitry Trofimov
2016-11-15 12:40:55 +01:00
parent c307bb2db7
commit c838186ce4

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") })
envs.putAll(reader.readShellEnv().filterKeys { k -> k in arrayOf("PATH", "PS1", "VIRTUAL_ENV", "PYTHONHOME", "PROMPT") })
}
}
}