Make globals overridable

This commit is contained in:
Luke Murphy 2019-06-27 23:54:49 +02:00
parent 7740e3e49d
commit b78a7ca584
No known key found for this signature in database
GPG key ID: 5E2EF5A63E3718CC

View file

@ -1,4 +1,8 @@
DATA_DIR = '/usr/share/moulinette' """Moulinette global configuration core."""
LIB_DIR = '/usr/lib/moulinette'
LOCALES_DIR = '/usr/share/moulinette/locale' from os import environ
CACHE_DIR = '/var/cache/moulinette'
DATA_DIR = environ.get('MOULINETTE_DATA_DIR', '/usr/share/moulinette')
LIB_DIR = environ.get('MOULINETTE_LIB_DIR', '/usr/lib/moulinette')
LOCALES_DIR = environ.get('MOULINETTE_LOCALES_DIR', '/usr/share/moulinette/locale')
CACHE_DIR = environ.get('MOULINETTE_CACHE_DIR', '/var/cache/moulinette')