X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2Fgeomsmesh.py;h=4c61d1b924f821d53c152c7c70b09013a3203fc7;hp=baa874ee7ce3fc59f63f73a7f4f811e257930814;hb=15a305400b400768e8de3632ae2623d9280d2e76;hpb=77b224bfc97465d694c206f026d02fc5ea70a0a3 diff --git a/src/Tools/blocFissure/gmu/geomsmesh.py b/src/Tools/blocFissure/gmu/geomsmesh.py index baa874ee7..4c61d1b92 100644 --- a/src/Tools/blocFissure/gmu/geomsmesh.py +++ b/src/Tools/blocFissure/gmu/geomsmesh.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- import logging -logging.info('start') -from initLog import getLogLevel +#logging.info('start') +import initLog import salome salome.salome_init() @@ -13,13 +13,13 @@ geompy = geomBuilder.New(salome.myStudy) from salome.smesh import smeshBuilder smesh = smeshBuilder.New(salome.myStudy) -logging.debug("initialisation de geompy et smesh OK") +# logging.debug("initialisation de geompy et smesh OK") -def geomPublishDebug(aShape, aName): - if getLogLevel() <= 1: +def geomPublish(level,aShape, aName): + if initLog.getLogLevel() <= level: geompy.addToStudy(aShape, aName) -def geomPublishDebugInFather(aFather, aShape, aName): - if getLogLevel() <= 1: +def geomPublishInFather(level, aFather, aShape, aName): + if initLog.getLogLevel() <= level: geompy.addToStudyInFather(aFather, aShape, aName) \ No newline at end of file