From: rnv Date: Mon, 18 May 2015 09:27:34 +0000 (+0300) Subject: Fix problem with the parsing arguments of the execfile(...) in the embedded python... X-Git-Tag: V7_6_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92b6a389;p=modules%2Fgui.git Fix problem with the parsing arguments of the execfile(...) in the embedded python console. --- diff --git a/src/PyInterp/PyInterp_Interp.cxx b/src/PyInterp/PyInterp_Interp.cxx index 48c6a8eb5..b2d9b9459 100644 --- a/src/PyInterp/PyInterp_Interp.cxx +++ b/src/PyInterp/PyInterp_Interp.cxx @@ -383,7 +383,7 @@ static int compile_command(const char *command, PyObject * global_ctxt, PyObject std::size_t pos = std::string(command).find("args:"); if (pos != std::string::npos) { commandArgs = singleCommand.substr(pos+5); - commandArgs = commandArgs.substr(0, commandArgs.length()-3); + commandArgs = commandArgs.substr(0, commandArgs.length()-2); singleCommand = singleCommand.substr(0, pos-1)+"\")"; }