working with relative paths
<p>When I run the following script:</p>

<p>c:\Program Files\foo\bar\scripy.py</p>

<p>How can I refer to directory 'foo'?
Is there a convenient way of using relative paths? </p>

<p>I've done it before with the string module, but there must be a better way (I couldn't find it in os.path).</p>
