Salome HOME
modifs pour Telemac
[tools/eficas.git] / InterfaceQT4 / monViewTexte.py
index 2dfcece64768a05113f98d3c31995779f7373d38..0c167c9b377901c640281ee4431c61098522cd9c 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2007-2013   EDF R&D
+# Copyright (C) 2007-2017   EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -58,7 +58,7 @@ class ViewText(Ui_dView,QDialog):
     def saveFile(self):
         #recuperation du nom du fichier
         if self.editor != None :
-           dir=self.editor.appliEficas.CONFIGURATION.savedir
+           dir=self.editor.appliEficas.maConfiguration.savedir
         else:
            dir='/tmp'
         fn = QFileDialog.getSaveFileName(None,
@@ -70,7 +70,7 @@ class ViewText(Ui_dView,QDialog):
 
         ulfile = os.path.abspath(six.text_type(fn))
         if self.editor != None :
-           self.editor.appliEficas.CONFIGURATION.savedir=os.path.split(ulfile)[0]
+           self.editor.appliEficas.maConfiguration.savedir=os.path.split(ulfile)[0]
         try:
            f = open(fn, 'w')
            f.write(str(self.view.toPlainText()))