1 # Copyright (C) 2012 EDF
3 # This file is part of SALOME PARAMETRIC module.
5 # SALOME PARAMETRIC module is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # SALOME PARAMETRIC module is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with SALOME PARAMETRIC module. If not, see <http://www.gnu.org/licenses/>.
20 from Editeur.catadesc import CatalogDescription
21 from InterfaceQT4.configuration import CONFIG_BASE
23 class CONFIG(CONFIG_BASE):
25 def __init__(self, appli, repIni):
27 This class stores the configuration parameters for Eficas
29 CONFIG_BASE.__init__(self, appli, repIni, '.parametric_exec_params')
31 # Configuration parameters
32 self.savedir = os.getenv("HOME")
33 catapath = os.path.join(os.path.dirname(__file__), "parametric_exec_params_cata.py")
34 self.catalogues = (CatalogDescription("parametric_exec_params", catapath),)
36 def save_params(self):
39 def make_config(appli, rep):
40 return CONFIG(appli, rep)
42 def make_config_style(appli, rep):