Restore documentation of methods dynamically added by plug-ins to the Mesh class, killed by previous integration

This commit is contained in:
vsr 2013-04-05 09:24:23 +00:00
parent a64d2ab318
commit 2611ba88e3
2 changed files with 6 additions and 2 deletions

View File

@ -36,7 +36,7 @@ DOC_LD_LIBRARY_PATH=$(prefix)lib/salome:${MED_ROOT_DIR}/lib/salome:${GEOM_ROOT_D
DOC_SMESH_MeshersList=StdMeshers
tmp/smeshBuilder.py: $(top_srcdir)/src/SMESH_SWIG/StdMeshersBuilder.py $(srcdir)/collect_mesh_methods.py
mkdir -p tmp && PYTHONPATH=$(DOC_PYTHONPATH):${PYTHONPATH} LD_LIBRARY_PATH=$(DOC_LD_LIBRARY_PATH):${LD_LIBRARY_PATH} SMESH_MeshersList=$(DOC_SMESH_MeshersList) $(PYTHON) $(srcdir)/collect_mesh_methods.py -o $@ StdMeshers
@mkdir -p tmp && PYTHONPATH=$(DOC_PYTHONPATH):${PYTHONPATH} LD_LIBRARY_PATH=$(DOC_LD_LIBRARY_PATH):${LD_LIBRARY_PATH} SMESH_MeshersList=$(DOC_SMESH_MeshersList) $(PYTHON) $(srcdir)/collect_mesh_methods.py -o $@ StdMeshers
usr_docs: doxyfile_py doxyfile tmp/smeshBuilder.py
@$(DOXYGEN) doxyfile_py ; \

View File

@ -51,7 +51,11 @@ import sys
def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"):
plugin_module_name = plugin_name + "Builder"
plugin_module = "salome.%s.%s" % (plugin_name, plugin_module_name)
plugin_module_short = "SMESH_SWIG.%s" % (plugin_module_name)
if dummymeshhelp:
namespace = plugin_name
else:
namespace = "SMESH_SWIG"
plugin_module_short = "%s.%s" % (namespace, plugin_module_name)
try:
exec( "from salome.smesh.smeshBuilder import *")
exec( "import %s" % plugin_module )