

def get_subpackages(name):
    'Return subpackages of package *name*'
    splist = []
    for (dirpath, _dirnames, _filenames) in os.walk(name):
        if osp.isfile(osp.join(dirpath, '__init__.py')):
            splist.append('.'.join(name.split(os.sep)))
    return splist

dataset/ETHPy150Open winpython/winpython/setup.py get_subpackages/VarMisuse@60/89 `dirpath`->`name`