| 32 | # everything as a 'pythonforandroid' rule, using '' apparently doesn't |
| 33 | # work. |
| 34 | def recursively_include(results, directory, patterns): |
| 35 | for root, subfolders, files in walk(directory): |
| 36 | for fn in files: |
| 37 | if not any( |
| 38 | glob.fnmatch.fnmatch(fn, pattern) for pattern in patterns): |
| 39 | continue |
| 40 | filename = join(root, fn) |
| 41 | directory = 'pythonforandroid' |
| 42 | if directory not in results: |
| 43 | results[directory] = [] |
| 44 | results[directory].append(join(*filename.split(sep)[1:])) |
| 45 | |
| 46 | |
| 47 | recursively_include(package_data, 'pythonforandroid/recipes', |