Hi Gerad,
The following code will work (at least in the current version of the
dev_appserver). I would like to point out that this is accessing a
private variable and may break in the future without any notice.
"""
from google.appengine.tools import dev_appserver
RealFileClass = dev_appserver.FakeFile._original_file
f = RealFileClass('filename', 'w')
"""
On 24 June 2011 10:36, Gerad Suyderhoud <[email protected]> wrote:
> Long story, but... I need to be able to write to the filesystem when
> running the development appserver.
>
> Anybody know of a way to get around Google's monkey patches preventing
> this? (Again, I only need to do this in development).
>
> Notes:
> 1. Yes, I truly do need to write to the file system (file gets picked
> up by another service).
> 2. No, it doesn't need file system write access in production.
>
> Thanks in advance for any help
>
> --
> 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.
>
>
--
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.