From: Pascale Noyret Date: Fri, 1 Dec 2006 10:08:16 +0000 (+0000) Subject: PN ajout de try except autour de SMESH et GEOM (pour rendre indépendante l installation) X-Git-Tag: V3_2_3_pre1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd5ae5789703f3a2b60f12924f69fc31ab61d1f1;p=tools%2Feficas.git PN ajout de try except autour de SMESH et GEOM (pour rendre indépendante l installation) --- 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