fixed PY-13150 Pyramid run configuration fails when specifing '--reload' in additional option

This commit is contained in:
Ekaterina Tuzova
2014-06-02 17:03:42 +04:00
parent 347094c34e
commit 50e11e6a83
2 changed files with 5 additions and 4 deletions

View File

@@ -165,11 +165,12 @@ public class SphinxBaseCommand {
script_params.addParameter(p);
}
}
cmd.addParameters("Sphinx", "sphinx-quickstart");
cmd.setPassParentEnvironment(true);
setPythonIOEncoding(cmd.getEnvironment(), "utf-8");
setPythonUnbuffered(cmd.getEnvironment());
cmd.getEnvironment().put("PYCHARM_EP_DIST", "Sphinx");
cmd.getEnvironment().put("PYCHARM_EP_NAME", "sphinx-quickstart");
List<String> pathList = Lists.newArrayList(PythonCommandLineState.getAddedPaths(sdk));
pathList.addAll(PythonCommandLineState.collectPythonPath(module));