Salome HOME
projects
/
modules
/
gui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ad7d86
)
Fix problem with the parsing arguments of the execfile(...) in the embedded python...
author
rnv
<rnv@opencascade.com>
Mon, 18 May 2015 09:27:34 +0000
(12:27 +0300)
committer
rnv
<rnv@opencascade.com>
Mon, 18 May 2015 09:27:34 +0000
(12:27 +0300)
src/PyInterp/PyInterp_Interp.cxx
patch
|
blob
|
history
diff --git
a/src/PyInterp/PyInterp_Interp.cxx
b/src/PyInterp/PyInterp_Interp.cxx
index 48c6a8eb5b5a2e415f0d7a90e9031ce9f788a40d..b2d9b945917da60be8043ab5d90db76a1b7ca02e 100644
(file)
--- 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)+"\")";
}