problem with join

nodrogbrown nodrogbrown at gmail.com
Fri Mar 7 11:30:18 EST 2008


> If the string is only used to open a file, and never shown to the user,
> what you prefer is irrelevant, isn't it?

guess thats right..

> Back to your code, try this:
>
>  from os.path import join, normpath
> folder = 'F:/brown/code/python/fgrp1'
> names = ['amber1.jpg', 'amber3.jpg', 'amy1.jpg', 'amy2.jpg']
> filenameslist = [normpath(join(folder, name)) for name in names]


thanks Gabriel..
gordon



More information about the Python-list mailing list