Pylons/pyramid — Issue #440: add real file path access to routes
Author: danosaure
Created: 2012-02-16 18:01:20+00:00
State: open

Can we have an API to access the real file path through the "request" object?

If I have a

add_static_view(name='static', path='MyPKG:static')

I would like to be able to access that path at runtime with a call like:

static_path = request.file_path('static')

It would complement the already existing "request.route_path(routename)".