Python os.path.dir
<p>I am trying to find the path that is located one directory up and contains a specific word. For example, the path I am trying to find here will be /whatever/path/2343blah344</p>

<pre><code>        oldpath = '/whatever/path/itis'
        newpath = os.path.join(os.path.dirname(oldpath), '/*blah*')
</code></pre>

<p>When I print newpath, it only shows up as /*blah, so I'm pretty sure * did not work or this is not the right way to approach it. </p>
