A stupid question about templating...

Do I really need to use the whole os.path.join monstrosity to tell
Python where my template lives?

I commented it out and replaced it with a simple path...it seems to
work fine.

What am I missing here? Why are others using this os.path.join
pattern?


#path = os.path.join(os.path.dirname(__file__), 'Templates/
mytemplate2.html' )
    path = 'Templates/mytemplate2.html'
    self.response.out.write(template.render(path, template_values))


Thx.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to