Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'V8_3_BR' into ngr/python3_dev
[modules/smesh.git]
/
doc
/
salome
/
gui
/
SMESH
/
collect_mesh_methods.py
diff --git
a/doc/salome/gui/SMESH/collect_mesh_methods.py
b/doc/salome/gui/SMESH/collect_mesh_methods.py
index 7aa83b0849f15c5ed13eee0345671303feb711ed..da53d4ee664ee6afb9f162bc1dd5e1e58a57d382 100755
(executable)
--- a/
doc/salome/gui/SMESH/collect_mesh_methods.py
+++ b/
doc/salome/gui/SMESH/collect_mesh_methods.py
@@
-31,7
+31,7
@@
# class.
#
# This script is intended for internal usage - only
# class.
#
# This script is intended for internal usage - only
-# for generat
at
ion of the extra developer documentation for
+# for generation of the extra developer documentation for
# the meshing plug-in(s).
#
# Usage:
# the meshing plug-in(s).
#
# Usage:
@@
-46,6
+46,7
@@
#
################################################################################
#
################################################################################
+import inspect
import sys
def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"):
import sys
def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"):
@@
-59,7
+60,7
@@
def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"):
for attr in dir( mod ):
if attr.startswith( '_' ): continue
algo = getattr( mod, attr )
for attr in dir( mod ):
if attr.startswith( '_' ): continue
algo = getattr( mod, attr )
- if
type( algo ).__name__ == 'classobj' and hasattr( algo, "meshMethod"
):
+ if
inspect.isclass(algo) and hasattr(algo, "meshMethod"
):
method = getattr( algo, "meshMethod" )
if method not in methods: methods[ method ] = []
methods[ method ].append( algo )
method = getattr( algo, "meshMethod" )
if method not in methods: methods[ method ] = []
methods[ method ].append( algo )
@@
-116,8
+117,8
@@
def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"):
f.close()
pass
pass
f.close()
pass
pass
- except Exception
,
e:
- print
e
+ except Exception
as
e:
+ print
(e)
pass
pass
pass
pass