You’ll want to look at using either get_data in the stdlib or pkg_resources from setuptools/distribute. Which one you use probably depends on whether you’re already using distribute to package your code as an egg.
You’ll want to look at using either get_data in the stdlib or pkg_resources from setuptools/distribute. Which one you use probably depends on whether you’re already using distribute to package your code as an egg.