2019-11-23 08:17:35 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
fichier de configuration pour créole
|
|
|
|
|
|
|
|
"""
|
2019-11-26 20:33:24 +01:00
|
|
|
from os.path import join, isfile
|
2019-11-23 08:17:35 +01:00
|
|
|
|
|
|
|
eoledir = '/usr/share/eole'
|
|
|
|
|
|
|
|
eoleroot = join(eoledir, 'creole')
|
|
|
|
|
|
|
|
# chemin du répertoire source des fichiers templates
|
|
|
|
templatedir = '/var/lib/creole'
|
|
|
|
|
|
|
|
distrib_dir = join(eoleroot, 'distrib')
|
|
|
|
patch_dir = join(eoleroot, 'patch')
|
|
|
|
|
|
|
|
# repertoire de la dtd
|
2019-11-26 20:33:24 +01:00
|
|
|
dtddir = '/usr/share/creole'
|
2019-11-23 08:17:35 +01:00
|
|
|
if isfile('data/creole.dtd'):
|
|
|
|
dtdfilename = 'data/creole.dtd'
|
|
|
|
elif isfile('../creole/data/creole.dtd'):
|
|
|
|
dtdfilename = '../creole/data/creole.dtd'
|
|
|
|
else:
|
|
|
|
dtdfilename = join(dtddir, 'creole.dtd')
|