]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix problem with the parsing arguments of the execfile(...) in the embedded python...
authorrnv <rnv@opencascade.com>
Mon, 18 May 2015 09:27:34 +0000 (12:27 +0300)
committerrnv <rnv@opencascade.com>
Mon, 18 May 2015 09:27:34 +0000 (12:27 +0300)
src/PyInterp/PyInterp_Interp.cxx

index 48c6a8eb5b5a2e415f0d7a90e9031ce9f788a40d..b2d9b945917da60be8043ab5d90db76a1b7ca02e 100644 (file)
@@ -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)+"\")";
   }