From 92b6a389b3bc0e4e25ea5a4aee7c4054b55b6b63 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 18 May 2015 12:27:34 +0300 Subject: [PATCH] Fix problem with the parsing arguments of the execfile(...) in the embedded python console. --- src/PyInterp/PyInterp_Interp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)+"\")"; } -- 2.39.2