import os
path ="C:\\Users\\wolf\\Desktop\\tools\\data\\VOC2007\\Annotations\\"
#print "name :", os.listdir(path)
listName = os.listdir(path)
for files in listName:
#print files
xmlName = files + '.xml'
os.rename(os.path.join(path,files), os.path.join(path,xmlName))
print "Done!"
path ="C:\\Users\\wolf\\Desktop\\tools\\data\\VOC2007\\Annotations\\"
#print "name :", os.listdir(path)
listName = os.listdir(path)
for files in listName:
#print files
xmlName = files + '.xml'
os.rename(os.path.join(path,files), os.path.join(path,xmlName))
print "Done!"