]> SALOME platform Git repositories - modules/hydrosolver.git/blob - src/salome_hydro/boundary_conditions/eficas/configuration_boundary_conditions.py
Salome HOME
the version delivered by EDF
[modules/hydrosolver.git] / src / salome_hydro / boundary_conditions / eficas / configuration_boundary_conditions.py
1 # -*- coding: utf-8 -*-
2 #
3 #  Copyright (C) 2012-2013 EDF
4 #
5 #  This file is part of SALOME HYDRO module.
6 #
7 #  SALOME HYDRO module is free software: you can redistribute it and/or modify
8 #  it under the terms of the GNU General Public License as published by
9 #  the Free Software Foundation, either version 3 of the License, or
10 #  (at your option) any later version.
11 #
12 #  SALOME HYDRO module is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #  GNU General Public License for more details.
16 #
17 #  You should have received a copy of the GNU General Public License
18 #  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
19
20 import os
21
22 from Editeur.catadesc import CatalogDescription
23 from InterfaceQT4.configuration import CONFIG_BASE
24
25 class CONFIG(CONFIG_BASE):
26
27   def __init__(self, appli, repIni):
28     """
29     This class stores the configuration parameters for Eficas
30     """
31     CONFIG_BASE.__init__(self, appli, repIni)
32
33     # Configuration parameters
34     self.savedir    = os.getenv("HOME")
35     self.catalogues = (CatalogDescription("boundary_conditions",
36                                           os.path.join(repIni, "boundary_conditions_cata.py"),
37                                           file_format = "boundary_conditions"),)
38     self.lang = 'fr'
39     self.generator_module = "generator_boundary_conditions"
40
41   def save_params(self):
42     pass
43
44 def make_config(appli, rep):
45   return CONFIG(appli, rep)
46
47 def make_config_style(appli, rep):
48   return None