Python Script Issue*
I am writing a script in Python. It is supposed to go in a bunch of folders in a folder. In each folder is a picture and an XML file. It will then copy the picture file to a new folder, and rename it according to some information in the XML file. Here is what I have so far:
top = "~/Comics/Dilbert"
for dirs in os.walk(top, topdown=False):
print "Starting walk"
for files in dirs:
print "Getting files"
currentXML = open(glob.glob('*.plist'),"r")
print "Got XML"
currentPicture = open(glob.glob('*.gif'), "r")
print "copied Picture"
It should be copying the image (the XML parsing isn't there yet), but all it does is print "Beginning". What have I done incorrectly? If it is relevant, and I did not think it was for something this simple, I am using Mac OS X 10.4.6.
Edit: Posting this did not keep my indentation, but I believe it is correct.
Last edited by Millenniumman; 06-18-2006 at 12:01 PM.