For some strange reason bash doesn't pass env variables sourced from rcfile to the...
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 18 Oct 2016 18:17:06 +0000 (20:17 +0200)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 18 Oct 2016 18:17:06 +0000 (20:17 +0200)
commit59bbcccc61093a6f4e2142b0594eddeb1bad0cde
treed2940ba2714a136d52dc1e0395a23a4472d07ae8
parent5ec562fdd857a368876b3ff0395783b038086520
For some strange reason bash doesn't pass env variables sourced from rcfile to the command in case of non-interactive mode.

Interactive mode can crash the process, so it is not an option.
The only option left is to use composite command that sources the activate script and then prints envs. And this works both for bash and sh on Linux.
python/src/com/jetbrains/python/run/PyVirtualEnvReader.kt