def get_packages(package):
    return [dirpath
            for dirpath, dirnames, filenames in os.walk(package)
            if os.path.exists(os.path.join(dirpath, '__init__.py'))]
Get a list of the names of the parent objects above this one.
dataset/ETHPy150Open djangonauts/django-hstore/setup.py/get_packages--crossover with--dataset/ETHPy150Open plotly/plotly.py/plotly/graph_objs/graph_objs.py/PlotlyBase._get_parent_object_names