From: NATHALIE GORE Date: Thu, 14 May 2020 06:08:48 +0000 (+0200) Subject: Ajout à la demande de Pascale : resolution d un bug pour MT X-Git-Tag: V9_5_0b^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cb838456089e2f8634cb8f494cccaa924ae29932;p=tools%2Feficas.git Ajout à la demande de Pascale : resolution d un bug pour MT --- diff --git a/InterfaceQT4/editorSsIhm.py b/InterfaceQT4/editorSsIhm.py old mode 100755 new mode 100644 index b60a39b8..69bd9d6b --- a/InterfaceQT4/editorSsIhm.py +++ b/InterfaceQT4/editorSsIhm.py @@ -480,11 +480,14 @@ class JDCEditorSsIhm : #---------------------------# def getChecksum(self,texte): #---------------------------# - newtexte=texte.replace('"','\\"') - commande='echo "'+newtexte+'"|md5sum' - a=os.popen(commande) - checksum=a.read() - a.close() + try : + newtexte=texte.replace('"','\\"') + commande='echo "'+newtexte+'"|md5sum' + a=os.popen(commande) + checksum=a.read() + a.close() + except : + checksum='Fichier trop long \n' ligne="#CHECKSUM:"+checksum[0:-1]+":FIN CHECKSUM" return ligne