Skip to content

Commit

Permalink
Fix #240: wsgi app init
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed May 3, 2018
1 parent b4d5382 commit db655c1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions flyingpigeon/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
from .processes import processes


def application(environ, start_response):
app = create_app()
return app(environ, start_response)


def create_app(cfgfiles=None):
config_files = [os.path.join(os.path.dirname(__file__), 'default.cfg')]
if cfgfiles:
Expand All @@ -17,3 +12,6 @@ def create_app(cfgfiles=None):
config_files.append(os.environ['PYWPS_CFG'])
service = Service(processes=processes, cfgfiles=config_files)
return service


application = create_app()

0 comments on commit db655c1

Please sign in to comment.