Create folder for external data

This commit is contained in:
Benjamin Bohard 2020-04-08 16:42:25 +02:00
parent 8e22886938
commit a97c17a615
2 changed files with 8 additions and 2 deletions

3
debian/rougail.dirs vendored Normal file
View File

@ -0,0 +1,3 @@
/var/rougail/patches
/var/rougail/templates
/var/rougail/manifests

View File

@ -6,8 +6,11 @@ fichier de configuration pour rougail
from os.path import join, isfile, abspath, dirname
from pathlib import Path
rougailroot = dirname(abspath(__file__))
dtddir = join(rougailroot, 'data')
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(ddtdir, 'rougail.dtd')
# chemin du répertoire source des fichiers templates