I want to import multiple images from a folder using os.path.join and os.walk. Here is the code so far:
path = '../images' # path to folder
for _,__,image_paths in os.walk(path):
for file_name in image_paths:
full_path = os.path.join(path,file_name)
When I print full path I get results like
../images\00.png
../images\01.png
../images\02.png
So I got forward and backward slashes. Is that going to be a problem? I can use the paths to import images just fine but I am worried it might cause errors somewhere down the line.
I guess along with that, I see people use forward and backward slashes more or less interchangeably, is there one that should be used?