At Wednesday 27/9/2006 11:50, James Johnston wrote:
fl = file(fileconfig,'r')
fileData = fl.read()
for f1 in glob.glob(fileData):
filelist = f1
Here, filelist is overwritten each time with another file name; the
last one survives. A few lines later you iterate thru filelist - in
fact, you are iterating along the *letters* in the file name, that
explains your error that "c" doesn't exist.
Just say: filelist = glob.glob(fileData)
Gabriel Genellina
Softlab SRL
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
--
http://mail.python.org/mailman/listinfo/python-list