[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how having the basename of a file or directory
From: |
Karl Fogel |
Subject: |
Re: how having the basename of a file or directory |
Date: |
Tue, 01 Feb 2011 10:37:39 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
"Stephen J. Turnbull" <address@hidden> writes:
> > or creating a basename function
>
>Un-Pythonic. But then, this isn't Python, so I guess it's OK. ;-)
$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
>>> import os.path
>>> os.path.basename("/home/kfogel/README")
'README'
>>> quit()
$