title: Is there a version of ConfigParser that deals with files with no section headers?
body: <p>I have a config file which is mainly used in shell scripts, and therefore has the following format:</p>
  
  <pre><code># Database parameters (MySQL only for now)
  DBHOST=localhost
  DATABASE=stuff
  DBUSER=mypkguser
  DBPASS=zbxhsxhg
  
  # Storage locations
  STUFFDIR=/var/mypkg/stuff
  GIZMODIR=/var/mypkg/gizmo
  </code></pre>
  
  <p>Now I need to read its values from a Python (2.6) script. I would like not to reinvent the wheel and parse it with <code>descriptor.readlines()</code> and looking for equal signs and skipping lines beginning with '#' and dealing with quoted values and blah blah blah boring. I tried using ConfigParser but it doesn't like files that don't have section headers. Do I have any options or will I have to do the boring thing?</p>
  
  <p>Oh, by the way, wrapping a shell script around the Python script is not an option. It has to run within Apache.</p>