os.tmpfile() -> permission denied (Win XP)
John Machin
sjmachin at lexicon.net
Sun Feb 11 00:33:07 EST 2007
On Feb 11, 4:15 pm, "Gabriel Genellina" <gagsl... at yahoo.com.ar> wrote:
> En Sun, 11 Feb 2007 01:57:52 -0300, John Machin <sjmac... at lexicon.net>
> escribió:
>
> > | >>> os.tmpfile()
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > OSError: [Errno 13] Permission denied
>
> > 1. Before I start checking what permissions who has to do what to
> > which, what directory is it likely to be trying to open the temp file
> > in? C:\WINDOWS\TEMP....?
>
> You could analyze the source,
I have already followed the twisty little passages: os.tmpfile() is
really nt.tempfile(), but there is no Modules/ntmodule.c (Modules/
posixmodule.c does a Jekyll & Hyde trick). (nt|posix)module calls
tmpfile(), which is (as I mentioned) in the C stdio library. How can I
analyse the source of that? Have Microsoft had a rush of blood to the
head and gone open source overnight??
> but usually I find easier to use FILEMON:http://www.sysinternals.com
Thanks, I'll try that.
Cheers,
John
More information about the Python-list
mailing list