Re: usage of file separator

2007-12-31 Thread [EMAIL PROTECTED]
> > from os.path import join > #.. >     imgfile=join(folder, x) > > -- > Thomas Wittek > thanx! dn -- http://mail.python.org/mailman/listinfo/python-list

Re: usage of file separator

2007-12-31 Thread Thomas Wittek
[EMAIL PROTECTED]: > for x in imagefilenames: > imgfile=folder+"/"+x > newimgfilenamelist.append(imgfile) > > [..] how do i make it work on other os? from os.path import join #.. imgfile=join(folder, x) -- Thomas Wittek Web: http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTECTED]

usage of file separator

2007-12-31 Thread [EMAIL PROTECTED]
in my code i am iterating thru a list of filenames (like 'image1.jpg' etc) and appending them to fully qualified directory names for x in imagefilenames: imgfile=folder+"/"+x newimgfilenamelist.append(imgfile) sothat finally i can get items like c:/mycode/image1.jpg etc from the newi