I sympathize with this, Python packaging is pretty grotty. However, at
some point you're going to need to understand it to make the most of
Python.
> I suggest not use pserve script but a plain python script like below
> to be default or at least a option to make it easier:
>
> #!/path/to/python
> import sys
> sys.insert(0, 'path/to/app')
> from app import wsgi_app, app_config
> from werkzeug.serving import run_simple
> run_simple(app_config.HOSTNAME, app_config.PORT, wsgi_app,
> use_reloader=app_config.DEBUG, use_debugger=app_config.DEBUG)
>
> Or something more powerful.
Defaults are pretty hard. We get value out of pserve and friends
(particularly the --reload flag).
Of course what you want is already possible. See the code sample at
http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/
- C