useless print

This commit is contained in:
Benoit Chesneau 2010-02-16 11:08:14 +01:00
parent d48bc785e6
commit 9fea7dd34b
2 changed files with 3 additions and 12 deletions

View File

@ -43,7 +43,7 @@ class Config(object):
def _load_file(self):
"""
Returns a dict of stuff found in the config file.
Defaults to $PWD/guniconf.py.
Defaults to $PWD/gunicorn.conf.py.
"""
if not os.path.exists(self.config_file):
return {}
@ -62,7 +62,6 @@ class Config(object):
self.conf.update(self._load_file())
for key, value in list(self.cmdopts.items()):
if value and value is not None:
print "%s = %s" % (key, value)
self.conf[key] = value
def __getitem__(self, key):
@ -123,11 +122,4 @@ class Config(object):
if not callable(before_exec):
raise RuntimeError("before_exec hook isn't a callable")
return before_exec(*args)

View File

@ -208,8 +208,7 @@ def run_django():
settings_path = os.path.join(project_path, "settings.py")
if not os.path.isfile(settings_path):
settings_notfound(settings_path)
project_name = os.path.split(project_path)[-1]
sys.path.insert(0, project_path)