finding file

K.S.Sreeram sreeram at tachyontech.net
Mon Jun 5 08:55:12 EDT 2006


K.S.Sreeram wrote:
> filepaths = [os.path.join(os.getcwd(),f) for f in filenames]

you can use os.path.abspath....

filepaths = [os.path.abspath(f) for f in filenames]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20060605/a8f6deb0/attachment.sig>


More information about the Python-list mailing list