Re: [Tutor] If os.path.lexists() isn't working properly

2010-11-26 Thread Susana Iraiis Delgado Rodriguez
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]

Re: [Tutor] If os.path.lexists() isn't working properly

2010-11-25 Thread Dave Angel
On 11/25/2010 09:20 AM, Susana Iraiis Delgado Rodriguez wrote: Hi Dave! Thank you for your suggestion I haven't prevent the problems you're describing, but I'm newbie in this stuff so, where should I repalce the code? Thank you again! 2010/11/24 Dave Angel On 01/-10/-28163 02:59 PM, Susana Ir

Re: [Tutor] If os.path.lexists() isn't working properly

2010-11-25 Thread Susana Iraiis Delgado Rodriguez
Hi Dave! Thank you for your suggestion I haven't prevent the problems you're describing, but I'm newbie in this stuff so, where should I repalce the code? Thank you again! 2010/11/24 Dave Angel > On 01/-10/-28163 02:59 PM, Susana Iraiis Delgado Rodriguez wrote: > >> Hello Peter! >> >> I added t

Re: [Tutor] If os.path.lexists() isn't working properly

2010-11-24 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Susana Iraiis Delgado Rodriguez wrote: Hello Peter! I added the line you suggested me and found out that I was just searching for the filenames without pointing to a specific directory, so Python took its directory (Python26) as default. After that I need to add a '\'

Re: [Tutor] If os.path.lexists() isn't working properly

2010-11-24 Thread Susana Iraiis Delgado Rodriguez
Hello Peter! I added the line you suggested me and found out that I was just searching for the filenames without pointing to a specific directory, so Python took its directory (Python26) as default. After that I need to add a '\' to separate the path from the filename because it was reading them a

Re: [Tutor] If os.path.lexists() isn't working properly

2010-11-24 Thread Alan Gauld
"Susana Iraiis Delgado Rodriguez" wrote I'm writing a python script to validate if files with extension .prj exist, if they exist it should write 1 or 0 into an excel cell. I've working to do this properly, but I'm not getting the results I need. The script doesn't find all the files, is l

Re: [Tutor] If os.path.lexists() isn't working properly

2010-11-24 Thread Peter Otten
Susana Iraiis Delgado Rodriguez wrote: > Hello memebers: > > I'm writing a python script to validate if files with extension .prj > exist, if they exist it should write 1 or 0 into an excel cell. I've > working to do this properly, but I'm not getting the results I need. The > script doesn't find

[Tutor] If os.path.lexists() isn't working properly

2010-11-24 Thread Susana Iraiis Delgado Rodriguez
Hello memebers: I'm writing a python script to validate if files with extension .prj exist, if they exist it should write 1 or 0 into an excel cell. I've working to do this properly, but I'm not getting the results I need. The script doesn't find all the files, is like the files don't exist but th