Salome HOME
premiere version
[tools/eficas.git] / MAP / configuration_MAP.py
1 # -*- coding: utf-8 -*-\r
2 # Copyright (C) 2007-2013   EDF R&D\r
3 #\r
4 # This library is free software; you can redistribute it and/or\r
5 # modify it under the terms of the GNU Lesser General Public\r
6 # License as published by the Free Software Foundation; either\r
7 # version 2.1 of the License.\r
8 #\r
9 # This library is distributed in the hope that it will be useful,\r
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of\r
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
12 # Lesser General Public License for more details.\r
13 #\r
14 # You should have received a copy of the GNU Lesser General Public\r
15 # License along with this library; if not, write to the Free Software\r
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
17 #\r
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
19 #\r
20 """\r
21     Ce module sert pour charger les parametres de configuration d'EFICAS\r
22 """\r
23 # Modules Python\r
24 import os\r
25 import sys\r
26 import configuration\r
27 \r
28 # Modules Eficas\r
29 from Editeur import utils\r
30 \r
31 class CONFIG(configuration.CONFIG_BASE):\r
32 \r
33   #-----------------------------------\r
34   def __init__(self,appli,repIni):\r
35   #-----------------------------------\r
36       self.ssCode=appli.ssCode\r
37       self.INSTALLDIR =os.path.dirname(__file__)\r
38 \r
39       self.labels_user=['exec_acrobat','savedir','path_doc']\r
40       self.labels_eficas=['exec_acrobat','savedir','path_doc','catalogues']\r
41 \r
42       #self.cataFile="catalogues_MAP.ini"\r
43       configuration.CONFIG_BASE.__init__(self,appli,repIni)\r
44   \r
45   def make_ssCode(self,ssCode):\r
46       if ssCode == None : return\r
47       try :\r
48         name='prefs_'+ssCode\r
49         prefs_ssCode=__import__(name)\r
50         prefs_ssCode.ajout(self)\r
51       except :\r
52        pass\r
53        \r
54 \r
55 def make_config(appli,rep):\r
56     return CONFIG(appli,rep)\r
57 \r
58 \r
59 \r