Problem embedding Python.
gagsl-py2 at yahoo.com.ar
Wed Oct 28 01:48:16 CET 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>
>> 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.
More information about the Python-list