[Tutor] Fw: rights
ALAN GAULD
alan.gauld at btinternet.com
Fri Nov 5 09:30:24 CET 2010
fowarding to group, please use reply-all when replying.
Alan Gauld
Author of the Learn To Program website
http://www.alan-g.me.uk/
----- Forwarded Message ----
> From: Chris King <g.nius.ck at gmail.com>
> To: Alan Gauld <alan.gauld at btinternet.com>
> Sent: Friday, 5 November, 2010 0:48:51
> Subject: Re: [Tutor] rights
>
> On 11/1/2010 8:43 PM, Alan Gauld wrote:
> >
> > "Chris King" <g.nius.ck at gmail.com> wrote
> >
> >>> You give the user account executing the script rights to read the folder.
> >>>
> >>> HTH,
> >>>
> >> It was a folder on my desktop, which I can always read, right, and destroy.
>I ran it on that user.
> >
> > In that case we probably need to see:
> >
> > 1) What OS?
> >
> > 2) What does the code look like?
> >
> > 3) How are you running it?
> >
> > 4) What error messages do you get?
> >
> > Also, is it a folder you are trying to read or a file?
> > They are not the same.
> >
> >
> I'm trying to get the raw binary of a file in linux or windows.
> When I run:
>
> f = open('C:/Documents and Settings/family/Desktop/Tuxpaint', 'rb')
>
> in Windows, it raises:
>
> Traceback (most recent call last):
> File "<pyshell#1>", line 1, in <module>
> f = open('C:/Documents and Settings/family/Desktop/Tuxpaint', 'rb')
> IOError: [Errno 13] Permission denied: 'C:/Documents and
>Settings/family/Desktop/Tuxpaint'
>
> Can you help?
>
More information about the Tutor
mailing list