I am having a strange time opening files with strings that I concatenate.
I want to iterate through the files in a directory but as I commented below, the string works fine, but the same thing does not when assembled from chunks.
(I get the same results with Idle)
from PIL import Image
string = “C:/Documents and Settings/cc/Desktop/Website/WedgeL/WedgeL0101.jpg”
pre = “C:/Documents and Settings/cc/Desktop/Website/WedgeL/WedgeL”
zero = str(0)
num = str(100)
ext = “.jpg”
concatcate = pre + zero + num + ext
#This works fine#
im = Image.open(string)
#This does not
#im = Image.open(concatenate)
ki =im.transpose (Image.FLIP_LEFT_RIGHT)