Fix obtaining virtualenv envs on Linux (PY-21055)
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 11 Oct 2016 17:12:42 +0000 (19:12 +0200)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 11 Oct 2016 17:12:42 +0000 (19:12 +0200)
bin/linux/printenv.py [changed mode: 0644->0755]
python/src/com/jetbrains/python/run/PyVirtualEnvReader.kt

old mode 100644 (file)
new mode 100755 (executable)
index 0bd285226fe944dd5809bdcbc493727023c1e0f4..2e26059160659d37d3cb0a93a18b11fb6904ad84 100644 (file)
@@ -86,10 +86,10 @@ class PyVirtualEnvReader(val virtualEnvSdkPath: String) : EnvironmentUtil.ShellE
 
     return if (activate != null)
       if (File(shellPath).name == "bash") {
-        mutableListOf(shellPath, "--rcfile", activate, "-i")
+        mutableListOf(shellPath, "--rcfile", activate)
       }
       else {
-        mutableListOf(shellPath, "-i", "-c", "source '$activate'")
+        mutableListOf(shellPath, "-c", "source '$activate'")
       }
     else super.getShellProcessCommand()
   }