X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FSMESH%2Fcollect_mesh_methods.py;h=72fdb038234424ac6197d2df999a080b3c2670e9;hp=8f524bc2defe200d4e7d2a9f237816befe330e7c;hb=88068fce89e10cb32b60ea51cae3440240d42e9f;hpb=2611ba88e39f01313ad533ede897ce1f4019afb7 diff --git a/doc/salome/gui/SMESH/collect_mesh_methods.py b/doc/salome/gui/SMESH/collect_mesh_methods.py index 8f524bc2d..72fdb0382 100755 --- a/doc/salome/gui/SMESH/collect_mesh_methods.py +++ b/doc/salome/gui/SMESH/collect_mesh_methods.py @@ -51,11 +51,6 @@ 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) - 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 ) @@ -73,7 +68,7 @@ def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"): if methods: output = [] if dummymeshhelp: - output.append( "## @package smesh" ) + output.append( "## @package smeshBuilder" ) output.append( "# Documentation of the methods dynamically added by the " + plugin_name + " meshing plug-in to the Mesh class." ) output.append( "" ) pass @@ -83,7 +78,7 @@ def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"): # Add dummy Mesh help # This is supposed to be done when generating documentation for meshing plug-ins output.append( "# @note The documentation below does not provide complete description of class @b %Mesh" ) - output.append( "# from @b %smesh.py package. This documentation provides only information about" ) + output.append( "# from @b smeshBuilder package. This documentation provides only information about" ) output.append( "# the methods dynamically added to the %Mesh class by the " + plugin_name + " plugin" ) output.append( "# For more details on the %Mesh class, please refer to the SALOME %Mesh module" ) output.append( "# documentation." ) @@ -112,7 +107,7 @@ def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"): output.append( " # @param algo_type type of algorithm to be created; allowed values are specified by classes implemented by plug-in (see below)" ) output.append( " # @param geom_shape if defined, the subshape to be meshed (GEOM_Object)" ) output.append( " # @return An instance of Mesh_Algorithm sub-class according to the specified @a algo_type, see " ) - output.append( " # %s" % ", ".join( [ "%s.%s" % ( plugin_module_short, algo.__name__ ) for algo in methods[ method ] ] ) ) + output.append( " # %s" % ", ".join( [ "%s.%s" % ( plugin_module_name, algo.__name__ ) for algo in methods[ method ] ] ) ) output.append( " def %s(algo_type, geom_shape=0):" % method ) output.append( " pass" ) pass