title: Get the top most parent directory in Python
body: <blockquote>
    <blockquote>
      <blockquote>
        <p>path
        'h:\OmWPDump_Tue_Oct_07_21_08_13_2014\windows\SystemsManagementx64\SysMgmtx64.msi'
        os.path.dirname(path)
        'h:\OmWPDump_Tue_Oct_07_21_08_13_2014\windows\SystemsManagementx64'</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>I need the code for so that it outputs the top most parent directory. :
  'h:\OmWPDump_Tue_Oct_07_21_08_13_2014;</p>
  
  <p>Basically I would need this location so that I remove the complete directory .</p>