the app was initialized 2 times. close #324

thanks @fafhrd91 for the diff
This commit is contained in:
benoitc 2012-05-15 00:21:43 +02:00
parent 01ad98f98a
commit 1efb622938

View File

@ -137,7 +137,7 @@ class PasterServerApplication(PasterBaseApplication):
raise
def load(self):
if hasattr(self, "cfgfname"):
if self.app is None and hasattr(self, "cfgfname"):
return loadapp(self.cfgurl, relative_to=self.relpath)
return self.app