Fix according to review IDEA-CR-13585
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 13 Sep 2016 19:59:38 +0000 (21:59 +0200)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 13 Sep 2016 19:59:38 +0000 (21:59 +0200)
python/src/com/jetbrains/python/run/PyVirtualEnvReader.kt

index ab18199e8e7db22dd094f4c52a65207a5d03e7cb..132a993c9bfe998a543f46dde1a26713ac10d076 100644 (file)
@@ -18,6 +18,7 @@ package com.jetbrains.python.run
 import com.intellij.openapi.util.SystemInfo
 import com.intellij.openapi.util.io.FileUtil
 import com.intellij.util.EnvironmentUtil
+import com.intellij.util.LineSeparator
 import java.io.File
 
 /**
@@ -45,7 +46,7 @@ class PyVirtualEnvReader(virtualEnvSdkPath: String) : EnvironmentUtil.ShellEnvRe
       FileUtil.appendToFile(activateFile, "\n\nset")
       val command = listOf<String>(activateFile.path, ">", envFile.absolutePath)
 
-      return runProcessAndReadEnvs(command, envFile, "\r\n")
+      return runProcessAndReadEnvs(command, envFile, LineSeparator.CRLF.separatorString)
     }
     finally {
       FileUtil.delete(activateFile)