[Tutor] If os.path.lexists() isn't working properly
Susana Iraiis Delgado Rodriguez
susana.delgado_s at utzmg.edu.mx
Fri Nov 26 15:40:46 CET 2010
Hello! After all the sugestions I received throught this list; I tried them
all and worked ok. At he end I noticed that a single variable change will
bring me the results I was looking for. In my code I replaced the line
n = os.path.splitext(filename)
for:
n = os.path.splitext(filepath)
p = n[0]+'.prj'
if os.path.exists(p):
....... code
I just wanted to pointed out, thank you all of you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101126/18267716/attachment.html>
More information about the Tutor
mailing list