mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Show warning only in the verbose mode.
This commit is contained in:
parent
5e342ebfd0
commit
1f846c64e0
@ -59,7 +59,8 @@ for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
|
|||||||
try:
|
try:
|
||||||
exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName))
|
exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print "Exception while loading %s: %s" % ( pluginBuilderName, e )
|
from salome_utils import verbose
|
||||||
|
if verbose(): print "Exception while loading %s: %s" % ( pluginBuilderName, e )
|
||||||
continue
|
continue
|
||||||
exec( "from salome.%s import %s" % (pluginName, pluginBuilderName))
|
exec( "from salome.%s import %s" % (pluginName, pluginBuilderName))
|
||||||
plugin = eval( pluginBuilderName )
|
plugin = eval( pluginBuilderName )
|
||||||
|
@ -4655,7 +4655,8 @@ for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
|
|||||||
try:
|
try:
|
||||||
exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName))
|
exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print "Exception while loading %s: %s" % ( pluginBuilderName, e )
|
from salome_utils import verbose
|
||||||
|
if verbose(): print "Exception while loading %s: %s" % ( pluginBuilderName, e )
|
||||||
continue
|
continue
|
||||||
exec( "from salome.%s import %s" % (pluginName, pluginBuilderName))
|
exec( "from salome.%s import %s" % (pluginName, pluginBuilderName))
|
||||||
plugin = eval( pluginBuilderName )
|
plugin = eval( pluginBuilderName )
|
||||||
|
Loading…
Reference in New Issue
Block a user