Skip to content
Snippets Groups Projects
Commit 78789f3a authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Added ability for mtdHelp to take the function pointers for algorithms themselves. Fixes #1324.

parent 10dcb69f
No related merge requests found
...@@ -498,6 +498,10 @@ namespace Mantid ...@@ -498,6 +498,10 @@ namespace Mantid
os << "\tif cmd == None or cmd == '':\n" os << "\tif cmd == None or cmd == '':\n"
<< "\t\tmtdGlobalHelp()\n" << "\t\tmtdGlobalHelp()\n"
<< "\t\treturn\n"; << "\t\treturn\n";
os << "\n\ttry:\n"
<< "\t\tcmd = cmd.func_name\n"
<< "\texcept ValueError:\n"
<< "\t\tpass\n";
os << "\n\tcmd = string.lower(cmd)\n"; os << "\n\tcmd = string.lower(cmd)\n";
//Functons help //Functons help
SimplePythonAPI::IndexVector::const_iterator mIter = helpStrings.begin(); SimplePythonAPI::IndexVector::const_iterator mIter = helpStrings.begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment