bootstrap-vz/tests/__init__.py
Anders Ingemann 4a0c598b81 Fix unit/manifests_tests
The manifest folder reordering into official/ and examples/
hid all of the manifests from that generator.
recursive_glob has been introduced in order to be able to find all
manifests.
2016-03-04 00:48:48 +01:00

9 lines
264 B
Python

# Snatched from: http://stackoverflow.com/a/2186565/339505
def recursive_glob(path, pattern):
import fnmatch
import os
for path, dirnames, filenames in os.walk(path):
for filename in fnmatch.filter(filenames, pattern):
yield os.path.join(path, filename)