mitsuhiko/werkzeug — pull request #531 by miguelgrinberg (2014-05-22 07:26:38+00:00)
Title: Reloader fixes

There are two somewhat related reloader fixes in this PR:

1. When using "python -m werkzeug.serving module:app" to start an app the reloaded app has the path of serving.py in sys.path[0] instead of the current directory. This needs to be fixed to allow the module where the app is to be found.

2. Inspired by the Flask/Click integration I have added support for lazy app loading to run_simple. This is achieved by passing the app to run as a "module:app" string.

Let me know what you think.

Miguel