From ce1b9f3522779f69efe04f6c157c26a528f56bc8 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Tue, 18 Nov 2008 16:18:10 +0000 Subject: [PATCH] Pour le path d acces aux fichiers sauvegardes --- InterfaceQT4/editor.py | 2 +- Openturns_Wrapper/configuration.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2