MCPcopy Index your code
hub / github.com/kivy/python-for-android / recursively_include

Function recursively_include

setup.py:34–44  ·  view source on GitHub ↗
(results, directory, patterns)

Source from the content-addressed store, hash-verified

32# everything as a 'pythonforandroid' rule, using '' apparently doesn't
33# work.
34def 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
47recursively_include(package_data, 'pythonforandroid/recipes',

Callers 1

setup.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected