]> SALOME platform Git repositories - modules/hydrosolver.git/blob - src/salome_hydro/pytel/eficas/configuration_pytel.py
Salome HOME
the version delivered by EDF
[modules/hydrosolver.git] / src / salome_hydro / pytel / eficas / configuration_pytel.py
1 #  Copyright (C) 2012-2013 EDF
2 #
3 #  This file is part of SALOME HYDRO module.
4 #
5 #  SALOME HYDRO module is free software: you can redistribute it and/or modify
6 #  it under the terms of the GNU 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.
9 #
10 #  SALOME HYDRO 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 General Public License for more details.
14 #
15 #  You should have received a copy of the GNU General Public License
16 #  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
17
18 import os
19
20 from Editeur.catadesc import CatalogDescription
21 from InterfaceQT4.configuration import CONFIG_BASE
22
23 class CONFIG(CONFIG_BASE):
24
25     def __init__(self, appli, repIni):
26         """
27         This class stores the configuration parameters for Eficas
28         """
29         CONFIG_BASE.__init__(self, appli, repIni)
30
31         # Configuration parameters
32         self.savedir    = os.getenv("HOME")
33         self.catalogues = (CatalogDescription("pytel", os.path.join(repIni, "pytel_cata.py")),)
34         self.lang = 'fr'
35
36     def save_params(self):
37         pass
38
39 def make_config(appli, rep):
40     return CONFIG(appli, rep)
41
42 def make_config_style(appli, rep):
43     return None