1 # -*- coding: utf-8 -*-
2 # CONFIGURATION MANAGEMENT OF EDF VERSION
3 # ======================================================================
4 # COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
5 # THIS PROGRAM 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 2 OF THE LICENSE, OR
8 # (AT YOUR OPTION) ANY LATER VERSION.
10 # THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
11 # WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
12 # MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
13 # GENERAL PUBLIC LICENSE FOR MORE DETAILS.
15 # YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
16 # ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
17 # 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
20 # ======================================================================
24 # repIni sert à localiser le fichier editeur.ini
26 repIni=os.path.dirname(os.path.abspath(__file__))
28 # INSTALLDIR sert à localiser l'installation d'Eficas
30 INSTALLDIR=os.path.join(repIni,'..')
32 # CODE_PATH sert à localiser Noyau et Validation éventuellement
33 # non contenus dans la distribution EFICAS
34 # Par défaut on utilise les modules de INSTALLDIR
35 # Peut valoir None (defaut)
38 # la variable code donne le nom du code a selectionner
41 # lang indique la langue utilisée pour les chaines d'aide : fr ou ang
44 # Codage des strings qui accepte les accents (en remplacement de 'ascii')
48 EditeurDir=INSTALLDIR+"/Editeur"
49 sys.path.insert(0,INSTALLDIR)
51 ICONDIR=os.path.join(INSTALLDIR,'Editeur','icons')
55 userprefs = os.sep.join( [ os.environ['HOMEDRIVE'], os.environ['HOMEPATH'], 'Eficas_install', 'prefs.py' ])
57 userprefs=os.path.expanduser("~/.Eficas_SEP/prefs.py")
59 if os.path.isfile(userprefs):