Problem embedding Python.

Brandon Keown keown.brandon at
Thu Oct 29 09:06:46 CET 2009

On Oct 27, 7:48 pm, "Gabriel Genellina" <gagsl-... at>
> En Tue, 27 Oct 2009 06:36:18 -0300, Brandon Keown
> <keown.bran... at> escribió:
> > On Oct 27, 2:47 am, "Gabriel Genellina" <gagsl-... at>
> > wrote:
> >> You didn't test for the fopen result; are you sure "" 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

I'm not sure what you mean.  I executed the program from the directory
the file was in, they were in the same directory.  And when a program
executes from a path in CMD in windows, that is supposed to be the
CWD.  I'm not sure what it would be set to if not that...

More information about the Python-list mailing list