title: How do I use data in package_data from source code?
body: <p>In setup.py, I have specified package_data like this:</p>
  
  <pre><code>packages=['hermes'],
  package_dir={'hermes': 'hermes'},
  package_data={'hermes': ['templates/*.tpl']},
  </code></pre>
  
  <p>And my directory structure is roughly</p>
  
  <pre><code>hermes/
   |
   | docs/
   | ...
   | hermes/
      | 
      | __init__.py
      | code.py
      | templates
          |
          | python.tpl
   |
   | README
   | setup.py
  </code></pre>
  
  <p>The problem is that I need to use files from the templates directory in my source code so I can write out python code (this project is a parser generator).  I can't seem to figure out how to properly include and use these files from my code.  Any ideas?</p>