Curious issue with simple code
MonkeeSage
MonkeeSage at gmail.com
Tue Sep 19 13:30:51 EDT 2006
codefire wrote:
> As above it all works as expected. However, on the marked line, if I
> use f instead of fp then that condition returns false! Surely,
> isfile(f) should return true, even if I just give a filename, rather
> than the full path?
Hi Tony,
Actually the file is in a different directory from the working
directory, so you need to give it the path where to find it. If you
started the script from 'c:\intent\docn' (i.e., start_dir), then just
using f would work.
Regards,
Jordan
More information about the Python-list
mailing list