Re: usage of file separator
- From: Thomas Wittek <mail@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Dec 2007 17:59:02 +0100
devnew@xxxxxxxxx:
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: streawkceur@xxxxxxxxxxxxxxxxxx
GPG: 0xF534E231
.
- References:
- usage of file separator
- From: devnew@xxxxxxxxx
- usage of file separator
- Prev by Date: Re: help building python installer
- Next by Date: dont loose packages
- Previous by thread: usage of file separator
- Next by thread: PyPy-Sprint 12th-19th January Leysin, Switzerland
- Index(es):