title: How can I get the installed GDAL/OGR version from python?
body: <p>How can I get the installed GDAL/OGR version from python?</p>
  
  <p>I aware of the <code>gdal-config</code> program and are currently using the following:</p>
  
  <pre><code>In [3]: import commands
  
  In [4]: commands.getoutput('gdal-config --version')
  Out[4]: '1.7.2'
  </code></pre>
  
  <p>However, I suspect there is a way to do this using the python API itself.  Any dice?</p>