Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Programming languages > RE Despair - help required
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
21 18th December 00:15
robert kern
External User
 
Posts: 1
Default RE Despair - help required



You mean like this:

import os
os.path.sep + os.path.split(r"c:\dos\util")[-1]

--
Robert Kern
rkern@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
  Reply With Quote


  sponsored links


22 18th December 00:22
sion arrowsmith
External User
 
Posts: 1
Default RE Despair - help required



Did you actually look at the docs Fredrik pointed you at? Did you,
in particular, notice os.path.basename, which does (almost) exactly
what you want?

--
\S -- siona@chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
___ | "Frankly I have no feelings towards penguins one way or the other"
\X/ | -- Arthur C. Clarke
her nu becomež se bera eadward ofdun hlęddre heafdes bęce bump bump bump
  Reply With Quote
23 18th December 00:23
yoav
External User
 
Posts: 1
Default RE Despair - help required


Thank you all guys. It seems like the simpler the solution, the more I
am happy about it. Sorry, for the simple question, I am quite new to
this lang.

Cheers.
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666