On Sat, Nov 7, 2009 at 8:39 AM, warlock24 <[email protected]> wrote:
>
> Hello
>
> Could someone tell me why tis code does't work?
>
> [CODE]
> ROOT_DIR = os.path.dirname(__file__)
> pageUrl = os.path.join(ROOT_DIR, 'pages/' + pageName + '.html')
> pageContent = open(pageUrl, 'r').read()
> [/CODE]
>
> i get error message
>
> [CODE]
> IOError: [Errno 2] No such file or directory: '/base/data/home/apps/
> warlock24/1.337586579904043005/pages/home.html'
> [/CODE]
>
> where are my files? :(

I would think that would work, but I cook everything in myself; you
might just try using a relative directory access instead of absolute,
I have heard that works best in GAE.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to