Compare commits
5 Commits
0b98f2ff6f
...
release/0.
Author | SHA1 | Date | |
---|---|---|---|
534b5f4413 | |||
5a1c39e8a1 | |||
8d09b90d26 | |||
a97c17a615 | |||
8e22886938 |
@ -1,21 +1,17 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
fichier de configuration pour créole
|
fichier de configuration pour rougail
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from os.path import join, isfile, abspath, dirname
|
from os.path import join, isfile, abspath, dirname
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
eoleroot = dirname(abspath(join(__file__, '..', '..')))
|
rougailroot = '/var/rougail'
|
||||||
|
patch_dir = join(rougailroot, 'patches')
|
||||||
|
manifests_dir = join(rougailroot, 'manifests')
|
||||||
|
templates_dir = join(rougailroot, 'templates')
|
||||||
|
dtddir = join(dirname(abspath(__file__)), 'data')
|
||||||
|
dtdfilename = join(dtddir, 'rougail.dtd')
|
||||||
|
|
||||||
# chemin du répertoire source des fichiers templates
|
# chemin du répertoire source des fichiers templates
|
||||||
patch_dir = join(eoleroot, 'patch')
|
patch_dir = '/srv/rougail/patch'
|
||||||
|
|
||||||
# repertoire de la dtd
|
|
||||||
dtddir = '/usr/share/rougail'
|
|
||||||
if isfile(join(eoleroot, 'data/rougail.dtd')):
|
|
||||||
dtdfilename = join(eoleroot, 'data/rougail.dtd')
|
|
||||||
elif isfile('../rougail/data/rougail.dtd'):
|
|
||||||
dtdfilename = '../rougail/data/rougail.dtd'
|
|
||||||
else:
|
|
||||||
dtdfilename = join(dtddir, 'rougail.dtd')
|
|
||||||
|
Reference in New Issue
Block a user