On Tue, 10 Nov 2009 12:57:30 -0800, Victor Subervi <victorsube...@gmail.com> wrote:

On Tue, Nov 10, 2009 at 3:41 PM, Rami Chowdhury <rami.chowdh...@gmail.com>wrote:

On Tue, 10 Nov 2009 12:38:36 -0800, Victor Subervi <
victorsube...@gmail.com> wrote:

 Hi;
I've determined the problem in a script is I can't open a file to write
it:
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?
TIA,
Victor


...and where's the file denoted by getpic?


getpic is incremented. For example, it can equal "getpic1.py".

My apologies -- I wasn't clear. Can you open the file denoted by getpic (e.g. "getpic1.py") for writing from the command line?

It would also be helpful if you let us know details of the exception being raised.


--
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)
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to