def find_pubspec_path(path, original=None):
    if os.path.exists(os.path.join(path, 'pubspec.yaml')):
        return path

    if original is None:
        original = path

    p = os.path.dirname(path)

    # Reached drive unit; stop.
    if p == os.path.dirname(p):
        return

    return find_pubspec_path(p, original)
Locates the directory containing a pubspec.yaml file.
dataset/ETHPy150Open guillermooo/dart-sublime-bundle/lib/path.py/find_pubspec_path