Created
September 25, 2012 07:58
-
-
Save ShinNoNoir/3780531 to your computer and use it in GitHub Desktop.
Working around a web.py bug...
This file contains 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 web | |
urls = ( | |
'/', 'index', | |
# etc... | |
) | |
class index: | |
def GET(self): | |
pass | |
# etc... | |
def workaround_issue175(): | |
# https://github.com/webpy/webpy/issues/175 | |
import os | |
import sys | |
sys.path.append(os.path.dirname(__file__)) | |
if __name__ == '__main__': | |
workaround_issue175() | |
app = web.application(urls, globals()) | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment