I have a variable in list format in which there are number of paths. I want to access each path 1 by 1 to write my output on that path
I have created a list which will have all the paths
folders = glob(test_img_path)
print(folders)
###############OUTPUT of FOLDERS Variable################
['C:\\Python35\\target_non_target\\Target_images_new\\video_tiger_23sec', 'C:\\Python35\\target_non_target\\Target_images_new\\video_tiger_leopard']
####################END#################################
##############LINE ON WHICH THE PATH WILL BE USED TO WRITE OUTPUT######
cv2.imwrite(folders+"\\{}.jpg".format(img_name),image)
###########END############
There will be many paths in this folders variable. How can i modify my code to access these paths 1 by 1 from this list to write my final output on that path