usage of file separator
- From: "devnew@xxxxxxxxx" <devnew@xxxxxxxxx>
- Date: Mon, 31 Dec 2007 07:56:15 -0800 (PST)
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
newimgfilenamelist
on windows this will work..but how do i make it work on other os?
Being a beginner i couldn't figure out how to solve this using
os.path can anyone help?
sorry if this is a silly qn
dn
.
- Follow-Ups:
- Re: usage of file separator
- From: Thomas Wittek
- Re: usage of file separator
- Prev by Date: Re: TK 8.5
- Next by Date: Re: using super
- Previous by thread: Python Trajectory Module?
- Next by thread: Re: usage of file separator
- Index(es):