Hi, The following lines of code gives an error starting with line where len() is used
local_BkFiles = glob.glob(localDirectoryName+'\\*' + data + '*bk*') local_BkFiles.sort(key=str.upper) last_pv_File_Name = local_PvFiles[len(local_PvFiles)-1] split_last_pv_File_Name = re.search(data+"_bk[0-9]{2}_[a-z]{3}_pv[0-9]{2}",last_pv_File_Name ) lastPv_FileVersion = re.search('(?<=pv)\d+',split_last_pv_File_Name.group(0)) This code is being called in a procedure or function def. How may I solve this. BRgds, kNish
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32