From fd5ae5789703f3a2b60f12924f69fc31ab61d1f1 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Fri, 1 Dec 2006 10:08:16 +0000 Subject: [PATCH] =?utf8?q?PN=20ajout=20de=20try=20except=20autour=20de=20S?= =?utf8?q?MESH=20et=20GEOM=20(pour=20rendre=20ind=C3=A9pendante=20l=20inst?= =?utf8?q?allation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/STUDY/EficasStudy.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/STUDY/EficasStudy.py b/src/STUDY/EficasStudy.py index 4c94c26b..24615463 100644 --- a/src/STUDY/EficasStudy.py +++ b/src/STUDY/EficasStudy.py @@ -3,8 +3,14 @@ import salomedsgui import salome import SALOMEDS -import GEOM -import SMESH +try : + import SMESH +except : + pass +try : + import SMESH +except : + pass from Logger import Logger logger=Logger( "EficasStudy" ) @@ -258,8 +264,8 @@ class SalomeStudy( salomedsgui.guiDS ): import sys type = sys.exc_info()[0] value = sys.exc_info()[1] - print '>>>>CS_Pbruno StudyTree.getMainShapeEntry( entry = %s ) ' %entry - print 'type = %s , value = %s '%( type, value ) + #print '>>>>CS_Pbruno StudyTree.getMainShapeEntry( entry = %s ) ' %entry + #print 'type = %s , value = %s '%( type, value ) result = None return result @@ -289,8 +295,8 @@ class SalomeStudy( salomedsgui.guiDS ): import sys type = sys.exc_info()[0] value = sys.exc_info()[1] - print '>>>>CS_Pbruno StudyTree.sameMainShape( shapeEntry1 = %s , shapeEntry2 = %s )'%( shapeEntry1, shapeEntry2 ) - print 'type = %s , value = %s '%( type, value ) + #print '>>>>CS_Pbruno StudyTree.sameMainShape( shapeEntry1 = %s , shapeEntry2 = %s )'%( shapeEntry1, shapeEntry2 ) + #print 'type = %s , value = %s '%( type, value ) result = None return result -- 2.39.2