Merge branch 'PY-10179' of https://github.com/Amarchuk/intellij-community into Amarch...
[idea/community.git] / python / src / com / jetbrains / python / console / RunPythonConsoleAction.java
index 9c610e768b28204f274d81bbe51f6cd70440b547..728056cca3012818ec31cbe1d44528b9eefe25b3 100644 (file)
@@ -221,7 +221,7 @@ public class RunPythonConsoleAction extends AnAction implements DumbAware {
     final String path = Joiner.on(", ").join(Collections2.transform(pythonPath, new Function<String, String>() {
       @Override
       public String apply(String input) {
-        return "'" + input.replace("\\", "\\\\") + "'";
+        return "'" + input.replace("\\", "\\\\").replace("'", "\\'") + "'";
       }
     }));