Can't Write File
victorsubervi at gmail.com
Tue Nov 10 21:57:30 CET 2009
On Tue, Nov 10, 2009 at 3:41 PM, Rami Chowdhury <rami.chowdhury at gmail.com>wrote:
> On Tue, 10 Nov 2009 12:38:36 -0800, Victor Subervi <
> victorsubervi at gmail.com> wrote:
>> I've determined the problem in a script is I can't open a file to write
>> script = open(getpic, "w") # where getpic is already defined
>> Here are the permissions:
>> -rwxr-xr-x 1 root root 4649 Nov 10 12:31 start.py
>> What am I doing wrong?
> ...and where's the file denoted by getpic?
getpic is incremented. For example, it can equal "getpic1.py". I've printed
this out in the except statement, since it's failing the try, so I know it's
working. (When I tried "raise" in the except, because of the way the code
reads, it defaulted to another except and didn't show me the error.)
> Rami Chowdhury
> "Never attribute to malice that which can be attributed to stupidity" --
> Hanlon's Razor
> 408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list