RE Despair - help required

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Thu Aug 25 10:13:59 EDT 2005


Yoav wrote:
> Don't think it will do much good. I need to get them from  a file and 
> extract the last folder in the path. For example:
> if I get "c:\dos\util"
> I want to extract the string "\util"

Then os.path.basename should be for you.

Reinhold



More information about the Python-list mailing list