add support for a local_settings.py file

This commit is contained in:
Frédéric Péters 2015-08-19 12:29:23 +02:00
parent e473b53500
commit 58d6eab803
2 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.orig
*.pyc
*.pyo
local_settings.py

View File

@ -1,3 +1,6 @@
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
GIT_PATH = "/var/lib/eobuilder/git"
ORIGIN_PATH = "/var/lib/eobuilder/origin"
@ -35,3 +38,8 @@ MIN_PACKAGE_VERSIONS = 10
# Keep a package version during minum X days
MIN_AGE = 60
local_settings_file = os.environ.get('EOBUILDER_SETTINGS_FILE',
os.path.join(os.path.dirname(__file__), 'local_settings.py'))
if os.path.exists(local_settings_file):
execfile(local_settings_file)