Getting the filename from a path in Python?
<p>I have a string containing a filename and optionally can be a full path or a relative one.</p>

<p><code>os.path</code> module seems to miss such function. What is the easiest solution?</p>
