From: Pascale Noyret Date: Tue, 18 Nov 2008 16:18:10 +0000 (+0000) Subject: Pour le path d acces aux fichiers sauvegardes X-Git-Tag: V0_a1_SEPQT4~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce1b9f3522779f69efe04f6c157c26a528f56bc8;p=modules%2Feficas.git Pour le path d acces aux fichiers sauvegardes --- diff --git a/InterfaceQT4/editor.py b/InterfaceQT4/editor.py index 90950f60..a313fdfb 100644 --- a/InterfaceQT4/editor.py +++ b/InterfaceQT4/editor.py @@ -491,7 +491,7 @@ class JDCEditor(QSplitter): newName = None if self.fichier is None or saveas: if path is None: - path=self.CONFIGURATION.initialdir + path=self.CONFIGURATION.savedir selectedFilter = QString('') fn = QFileDialog.getSaveFileName( self, self.trUtf8("sauvegarde"), path, diff --git a/Openturns_Wrapper/configuration.py b/Openturns_Wrapper/configuration.py index f97ef869..8eed5f04 100644 --- a/Openturns_Wrapper/configuration.py +++ b/Openturns_Wrapper/configuration.py @@ -58,12 +58,13 @@ class CONFIG: else: self.parent=None - self.labels=("OpenTURNS_path","rep_user","INSTALLDIR","path_doc","exec_acrobat","rep_cata","initialdir") + self.labels=("OpenTURNS_path","rep_user","INSTALLDIR","path_doc","exec_acrobat","rep_cata","initialdir","savedir") # Valeurs par defaut self.rep_user = os.path.join(os.environ['HOME'],'.Eficas_Openturns') self.initialdir = self.rep_user self.path_doc = self.rep_user + self.savedir = self.rep_user self.exec_acrobat = self.rep_user #Lecture des fichiers utilisateurs