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!
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to