Fixes loading config files with Django apps.

Thanks to Adrien Lemaire for noticing the issue.

Fixes #98
This commit is contained in:
Paul J. Davis 2010-10-07 10:15:36 -04:00
parent ac9f38de53
commit 0f3f2e6ab7
2 changed files with 3 additions and 2 deletions

1
THANKS
View File

@ -16,3 +16,4 @@ thomasst <http://github.com/thomasst>
Jonas Borgström <http://github.com/jborg>
PA Parent <paparent@paparent.me>
Travis Cline <travis.cline@gmail.com>
Adrien Lemaire <lemaire.adrien@gmail.com>

View File

@ -68,9 +68,9 @@ class DjangoApplicationCommand(Application):
"__package__": None
}
try:
execfile(config_file, cfg, cfg)
execfile(self.config_file, cfg, cfg)
except Exception, e:
print "Failed to read config file: %s" % config_file
print "Failed to read config file: %s" % self.config_file
traceback.print_exc()
sys.exit(1)