I was trying to use google app engine for my project and ran into some difficulties with starting the web.py application in a mode that will run on GAE. I did some research and made this method that detects the version of python you're using (GAE is different depending on if you're using 2.5 or 2.7) and then does the correct thing for that version to run on GAE.
This pull request passes (merged 232de44 into 875ef3d).
Is there some way to detect we're on GAE and build this into app.run()?
Otherwise the commit is fine with me.
I tried asking around on the GAE irc, but no one responded. I could try their issue tracker, but I can't really think of a way to detect it without some on disk stuff.
Projects are configured with an app.yaml file like this:
- url: /static
- url: /.*s
I could check if the file is present in the current directory and if so, read the runtime label.
Added a gaerun method to start application for google app engine