Created
October 16, 2015 06:35
-
-
Save okn3/fd86c226172dc8ee928b to your computer and use it in GitHub Desktop.
adapter.wsgi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import os | |
| dirpath = os.path.dirname(os.path.abspath(__file__)) | |
| sys.path.append(dirpath) | |
| # Change working directory so relative paths (and template lookup) work again | |
| os.chdir(os.path.dirname(__file__)) | |
| import bottle | |
| # ... build or import your bottle application here ... | |
| # Do NOT use bottle.run() with mod_wsgi | |
| import index | |
| application = bottle.default_app() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment