[pylons-discuss] check if mako template exists

2013-10-17 Thread cropr
Does anybody know how one can check in Pyramid if a mako template exists without rendering it, assuming that the mako.directiories is correctly set up? -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To unsubscribe from this group and stop

Re: [pylons-discuss] check if mako template exists

2013-10-17 Thread Laurent DAVERIO
Le 17/10/13 09:34, cropr a écrit : Does anybody know how one can check in Pyramid if a mako template exists without rendering it, assuming that the mako.directiories is correctly set up? I think you need this:

Re: [pylons-discuss] check if mako template exists

2013-10-17 Thread Laurent DAVERIO
if os.path.exists(): Oops, I meant: if os.path.exists(path): 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