From 5f591921934c5d31f4407a15a154124d220c5c8e Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 11 Mar 2010 12:01:47 +0100 Subject: [PATCH] allow custom default config file name for use with grainbows. --- gunicorn/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gunicorn/config.py b/gunicorn/config.py index 9bd9582f..8f7752dc 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -12,6 +12,8 @@ from gunicorn import util class Config(object): + DEFAULT_CONFIG_FILE = 'gunicorn.conf.py', + DEFAULTS = dict( backlog=2048, bind='127.0.0.1:8000', @@ -39,7 +41,8 @@ class Config(object): def __init__(self, cmdopts, path=None): if not path: - self.config_file = os.path.join(os.getcwd(), 'gunicorn.conf.py') + self.config_file = os.path.join(os.getcwd(), + self.DEFAULT_CONFIG_FILE) else: self.config_file = os.path.abspath(os.path.normpath(path)) self.cmdopts = cmdopts