From: Pascale Noyret Date: Thu, 27 Aug 2009 10:09:21 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V1_0OpenTurns~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f3bc62b560e45aad5cca4ba2fc72a0def1b1d00;p=modules%2Feficas.git *** empty log message *** --- diff --git a/InterfaceQT4/compooper.py b/InterfaceQT4/compooper.py index 58230078..bfbe5af8 100644 --- a/InterfaceQT4/compooper.py +++ b/InterfaceQT4/compooper.py @@ -92,6 +92,7 @@ class Node(browser.JDCNode, typeNode.PopUpMenuNode): exec script in d except: #else: + traceback.print_exc() QMessageBox.warning( None, self.appliEficas.trUtf8("Erreur interne"), diff --git a/Openturns_Study/prefs_OPENTURNS_STUDY.py b/Openturns_Study/prefs_OPENTURNS_STUDY.py index 752aee0d..ee47058d 100644 --- a/Openturns_Study/prefs_OPENTURNS_STUDY.py +++ b/Openturns_Study/prefs_OPENTURNS_STUDY.py @@ -45,8 +45,7 @@ exec_acrobat = "/usr/bin/xpdf" # OpenTURNS Python module -OpenTURNS_path="/opt/OpenTURNS/install/lib/python2.4/site-packages" +OpenTURNS_path="/local00/home/dutka/OpenTURNS/merge/trunk/build/install/lib/python2.4/site-packages" # Choix des catalogues -sys.path[:0]=[INSTALLDIR] -sys.path.append( OpenTURNS_path ) +sys.path[:0]=[INSTALLDIR, OpenTURNS_path] diff --git a/Openturns_Wrapper/prefs_OPENTURNS_WRAPPER.py b/Openturns_Wrapper/prefs_OPENTURNS_WRAPPER.py index 10c24fbf..e6bbd609 100644 --- a/Openturns_Wrapper/prefs_OPENTURNS_WRAPPER.py +++ b/Openturns_Wrapper/prefs_OPENTURNS_WRAPPER.py @@ -45,10 +45,9 @@ path_doc = os.path.join(rep_cata,'Doc') exec_acrobat = "/usr/bin/xpdf" # OpenTURNS Python module -OpenTURNS_path="/opt/OpenTURNS/install/lib/python2.4/site-packages" +OpenTURNS_path="/local00/home/dutka/OpenTURNS/merge/trunk/build/install/lib/python2.4/site-packages" # Choix des catalogues -sys.path[:0]=[INSTALLDIR] -sys.path.append( OpenTURNS_path ) +sys.path[:0]=[INSTALLDIR,OpenTURNS_path] diff --git a/generator/OpenturnsSTD.py b/generator/OpenturnsSTD.py index 66c06d2f..ead80af5 100644 --- a/generator/OpenturnsSTD.py +++ b/generator/OpenturnsSTD.py @@ -25,7 +25,7 @@ headerSTD = """#! /usr/bin/env python # Chargement du module systeme import sys -sys.path.append( '%s' ) +sys.path[:0]=['%s'] # Chargement du module math import math @@ -1310,7 +1310,7 @@ class STDGenerateur : ''' Produit une image PNG representant la PDF de la loi ''' - txt = headerSTD + txt = headerSTD % self.OpenTURNS_path txt += "dist = %s\n" % apply( STDGenerateur.__dict__[ loi[ 'Kind' ] ], (self, loi) ) txt += "graph = dist.drawPDF()\n" txt += "graph.draw( '%s' )\n" % fichier