cross-platform splitting of path in python
<p>I'd like something that has the same effect as this:</p>

<pre><code>&gt;&gt;&gt; path = "/foo/bar/baz/file"
&gt;&gt;&gt; path_split = path.rsplit('/')[1:]
&gt;&gt;&gt; path_split
['foo', 'bar', 'baz', 'file']
</code></pre>

<p>But that will work with Windows paths too. I know that there is an <code>os.path.split()</code> but that doesn't do what I want, and I didn't see anything that does.</p>
