En Tue, 27 Oct 2009 06:36:18 -0300, Brandon Keown
<keown.bran...@gmail.com> escribió:
On Oct 27, 2:47 am, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:

You didn't test for the fopen result; are you sure "test.py" exists in the current directory at the time you run it?

Ok, so I assumed that the file, if supplied without a path, would use
current working directory, which was evidently a false assumption.

Now that you've solved your problem, revise your conclusion. A file
without a path *is* searched in the current working directory - but that
directory may not be the one you think it is.

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to