third_party/android_deps/fetch_all.py
def BuildDir(dirname=None):
    """Helper function used to manage a build directory.

    Args:
      dirname: Optional build directory path. If not provided, a temporary
        directory will be created and cleaned up on exit.
    Returns:
      A python context manager modelling a directory path. The manager
      removes the directory if necessary on exit.
    """
    delete = False
    if not dirname:
        dirname = tempfile.mkdtemp()
        delete = True
    try:
        yield dirname
    finally:
        if delete:
            shutil.rmtree(dirname)
Helper function used to manage a build directory.

    Args:
      dirname: Optional build directory path. If not provided, a temporary
        directory will be created and cleaned up on exit.
    Returns:
      A python context manager modelling a directory path. The manager
      removes the directory if necessary on exit.
    
Helper function used to manage a build directory.
Helper function used to manage a build directory .
def BuildDir(dirname=None):
    delete = False
    if not dirname:
        dirname = tempfile.mkdtemp()
        delete = True
    try:
        yield dirname
    finally:
        if delete:
            shutil.rmtree(dirname)
def BuildDir ( dirname = None ) : delete = False if not dirname : dirname = tempfile . mkdtemp ( ) delete = True try : yield dirname finally : if delete : shutil . rmtree ( dirname )
Helper function used to manage a build directory.
Helper function used to manage a build directory .
"""Helper function used to manage a build directory.

    Args:
      dirname: Optional build directory path. If not provided, a temporary
        directory will be created and cleaned up on exit.
    Returns:
      A python context manager modelling a directory path. The manager
      removes the directory if necessary on exit.
    """
A python context manager modelling a directory path. The manager
removes the directory if necessary on exit.
A python context manager modelling a directory path . The manager removes the directory if necessary on exit .
dirname
Optional build directory path. If not provided, a temporary
directory will be created and cleaned up on exit.
Optional build directory path . If not provided a temporary directory will be created and cleaned up on exit .