On Sat, Nov 7, 2009 at 1:39 PM, warlock24 <[email protected]> wrote: > [CODE] > ROOT_DIR = os.path.dirname(__file__) > pageUrl = os.path.join(ROOT_DIR, 'pages/' + pageName + '.html') > pageContent = open(pageUrl, 'r').read() > [/CODE]
Is the .html file mapped in app.yaml as static file? If it is, it can't be read directly. If not, try using abspath: ROOT_DIR = os.path.abspath(os.path.dirname(__file__)) -- rodrigo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
