On 8/26/08, vandevel <[EMAIL PROTECTED]> wrote:
>
>  Thanks for the reply. Could you suggest an easy way to determine the
>  path to the template? This is abstracted of course using the decorator
>  syntax on a controller method but I am not sure about the best way to
>  do that manually, in a portable fashion.

import pkg_resources
template_path = pkg_resources.resource_filename(__name__, '/mydir', 'toto.xml')

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to