Problem embedding Python.

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Oct 27 20:48:16 EDT 2009


En Tue, 27 Oct 2009 06:36:18 -0300, Brandon Keown
<keown.brandon at gmail.com> escribió:
> On Oct 27, 2:47 am, "Gabriel Genellina" <gagsl-... at 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




More information about the Python-list mailing list