Commit 7acecba6 authored by olivier stasse's avatar olivier stasse
Browse files

Handle error messages for the python interpreter.

parent fe19a693
......@@ -86,9 +86,19 @@ runPython(std::ostream& file,
dynamicgraph::Interpreter& interpreter)
{
file << ">>> " << command << std::endl;
std::string value = interpreter.runCommand(command);
if (value != "None")
file << value;
std::string lerr(""),lout(""),lres("");
interpreter.runCommand(command,lres,lout,lerr);
if (lres != "None")
{
if (lres=="<NULL>")
{
file << lout << std::endl;
file << "------" << std::endl;
file << lerr << std::endl;
}
else
file << lres << std::endl;
}
}
void SoTHRP2Controller::
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment