From 4e093d8c63f0480ccad6a252d92ecb80ca94ec51 Mon Sep 17 00:00:00 2001 From: prascle Date: Mon, 25 Feb 2013 10:43:20 +0000 Subject: [PATCH] PR: comment debug print --- src/SMESH_SWIG/smesh.py | 2 +- src/SMESH_SWIG/smeshBuilder.py | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index e51fe36f2..0c62821bb 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -52,7 +52,7 @@ except: from salome.smesh.smeshBuilder import Mesh, algoCreator for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ): # - print "pluginName: ", pluginName + #print "pluginName: ", pluginName pluginBuilderName = pluginName + "Builder" try: exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName)) diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index c655fdf51..9e31ea0e8 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -309,7 +309,7 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen): global engine global smeshInst global doLcc - print "__new__", engine, smeshInst, doLcc + #print "__new__", engine, smeshInst, doLcc if smeshInst is None: # smesh engine is either retrieved from engine, or created @@ -324,17 +324,17 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen): # FindOrLoadComponent called: # 1. CORBA resolution of server # 2. the __new__ method is called again - print "smeshInst = lcc.FindOrLoadComponent ", engine, smeshInst, doLcc + #print "smeshInst = lcc.FindOrLoadComponent ", engine, smeshInst, doLcc smeshInst = salome.lcc.FindOrLoadComponent( "FactoryServer", "SMESH" ) else: # FindOrLoadComponent not called if smeshInst is None: # smeshBuilder instance is created from lcc.FindOrLoadComponent - print "smeshInst = super(smeshBuilder,cls).__new__(cls) ", engine, smeshInst, doLcc + #print "smeshInst = super(smeshBuilder,cls).__new__(cls) ", engine, smeshInst, doLcc smeshInst = super(smeshBuilder,cls).__new__(cls) else: # smesh engine not created: existing engine found - print "existing ", engine, smeshInst, doLcc + #print "existing ", engine, smeshInst, doLcc pass return smeshInst @@ -342,7 +342,7 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen): return smeshInst def __init__(self): - print "__init__" + #print "__init__" SMESH._objref_SMESH_Gen.__init__(self) ## Dump component to the Python script @@ -363,7 +363,7 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen): ## Sets the current study and Geometry component # @ingroup l1_auxiliary def init_smesh(self,theStudy,geompyD = None): - print "init_smesh" + #print "init_smesh" self.SetCurrentStudy(theStudy,geompyD) ## Creates an empty Mesh. This mesh can have an underlying geometry. @@ -1083,7 +1083,7 @@ class Mesh: for attrName in dir(self): attr = getattr( self, attrName ) if isinstance( attr, algoCreator ): - print "algoCreator ", attrName + #print "algoCreator ", attrName setattr( self, attrName, attr.copy( self )) ## Initializes the Mesh object from an instance of SMESH_Mesh interface @@ -4377,7 +4377,7 @@ class hypMethodWrapper: for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ): # - print "pluginName: ", pluginName + #print "pluginName: ", pluginName pluginBuilderName = pluginName + "Builder" try: exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName)) @@ -4386,15 +4386,15 @@ for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ): continue exec( "from salome.%s import %s" % (pluginName, pluginBuilderName)) plugin = eval( pluginBuilderName ) - print " plugin:" , str(plugin) + #print " plugin:" , str(plugin) # add methods creating algorithms to Mesh for k in dir( plugin ): if k[0] == '_': continue algo = getattr( plugin, k ) - print " algo:", str(algo) + #print " algo:", str(algo) if type( algo ).__name__ == 'classobj' and hasattr( algo, "meshMethod" ): - print " meshMethod:" , str(algo.meshMethod) + #print " meshMethod:" , str(algo.meshMethod) if not hasattr( Mesh, algo.meshMethod ): setattr( Mesh, algo.meshMethod, algoCreator() ) pass -- 2.30.2