astropy/astropy-helpers — pull request #42 by astrofrog (2014-06-11 11:29:56+00:00)
Title: Added a new ``list_data_files`` function that can be used to search for files recursively

In the package-template, we currently search for c files manually:

```
c_files = []
for root, dirs, files in os.walk(PACKAGENAME):
for filename in files:
if filename.endswith('.c'):
c_files.append(
os.path.join(
os.path.relpath(root, PACKAGENAME), filename))
```

we now also need to search for all files in ``packagename/data/`` recursively, so I thought it would be more convenient to write a function to do this.

I can add tests if we think this is a good idea.

cc @embray @mdboom