Salome HOME
menage
[tools/eficas.git] / Aster / prefs_ASTER.py
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2007-2012   EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 import os
22
23 # repIni sert a localiser le fichier editeur.ini
24 # Obligatoire
25 repIni=os.path.dirname(os.path.abspath(__file__))
26 rep_cata = os.path.join(repIni,'Cata')
27 mode_nouv_commande='alpha'
28
29
30 # lang indique la langue utilisee pour les chaines d'aide : fr ou ang
31 lang='fr'
32
33 # Codage des strings qui accepte les accents (en remplacement de 'ascii')
34 encoding='iso-8859-1'
35
36 # Utilisateur/Developpeur
37 isdeveloppeur   =       "NON"
38
39 rep_mat_STA88=os.path.join(rep_cata,'cataSTA8','materiau')
40 rep_mat_STA98=os.path.join(rep_cata,'cataSTA9','materiau')
41 rep_mat_STA103=os.path.join(rep_cata,'cataSTA10','materiau')
42  
43 #path_doc="/local/noyret/Docs"
44 rep_doc_STA88="/local/noyret/Docs"
45 rep_doc_STA103="/local/noyret/Docs"
46 rep_doc_STA11="/local/noyret/Docs/cataSTA11c_clefs_docu"
47
48 # Choix des catalogues
49 catalogues=(
50 #('ASTER','STA8.8',os.path.join(rep_cata,'cataSTA8'),'python'),
51 #('ASTER','STA9.8',os.path.join(rep_cata,'cataSTA9'),'python'),
52 #('ASTER','STA10.3',os.path.join(rep_cata,'cataSTA10'),'python'),
53 #('ASTER','STA11',os.path.join(rep_cata,'cataSTA11'),'python','defaut'),
54 ('ASTER','STA12',os.path.join(rep_cata,'cataSTA12'),'python','defaut'),
55 )
56 exec_acrobat    = '/usr/bin/xgd-open'
57
58
59 def addCatalog(catalogName, catalogPath):
60     """
61     This function helps you to add a new catalog dynamically
62     """
63     global catalogues
64     item=('ASTER',catalogName,catalogPath,'python')
65     catalogues+=(item,)
66