fix sub-namespace pollution problem

This commit is contained in:
Mark McClain
2011-02-16 17:05:48 -05:00
parent 9ae9e1f13d
commit 1a6eefe0b2
3 changed files with 21 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ class ServeCommand(_ServeCommand, Command):
# for file-watching to work, we need a filename, not a module
if self.requires_config_file and self.args:
self.config = self.load_configuration(self.args[0])
self.args[0] = self.config._filename
self.args[0] = self.config.__file__
if self.options.reload is None:
self.options.reload = getattr(self.config.app, 'reload', False)