fix sub-namespace pollution problem
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user