Le 01/05/13 19:28, Michael Merickel a écrit :
This is the purpose of the AssetResolver.
resolver = AssetResolver()
asset = resolver.resolve('mypkg:static/img/%s' % img_filename)
asset.abspath() # -> /foo/bar/static/img/...
http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/api/path.html#pyramid.path.AssetResolver
Perfect! Thank you very much :-)
Laurent.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.