Re: how to remove suffix from filename

2008-03-19 Thread Larry Bates
royG wrote: > hi > when parsing a list of filenames like ['F:/mydir/one.jpg','F:/mydir/ > two.jpg'] etc i want to extract the > basename without the suffix...ie i want to get 'one','two' etc and not > 'one.jpg' > > is there a function in python to do this or do i have tosplit it ..? > thanks >

Re: how to remove suffix from filename

2008-03-19 Thread Mel
royG wrote: > when parsing a list of filenames like ['F:/mydir/one.jpg','F:/mydir/ > two.jpg'] etc i want to extract the > basename without the suffix...ie i want to get 'one','two' etc and not > 'one.jpg' > > is there a function in python to do this or do i have tosplit it ..? > thanks os.pa

how to remove suffix from filename

2008-03-19 Thread royG
hi when parsing a list of filenames like ['F:/mydir/one.jpg','F:/mydir/ two.jpg'] etc i want to extract the basename without the suffix...ie i want to get 'one','two' etc and not 'one.jpg' is there a function in python to do this or do i have tosplit it ..? thanks RG -- http://mail.python.or