def subdir_findall(dir, subdir):
 strip_n = len(dir.split('/'))
 path = '/'.join((dir, subdir))
 return ['/'.join(s.split('/')[strip_n:]) for s in setuptools.findall(path)]

def subdir_findall ( dir , subdir ) : strip_n = len ( dir . split ( '/' ) ) path = '/' . join ( ( dir , subdir ) ) return [ '/' . join ( s . split ( '/' ) [ strip_n : ] ) for s in setuptools . findall ( path ) ]
find all files in a subdirectory and return paths relative to dir this is similar to setuptools .