parameters: (url, path, force, root=None)
return_statement: return unpack_archive(path, cfg.src_dir, root)
docstring: Download and unpack an archive at 'url' to 'path'.
docstring_summary: Download and unpack an archive at 'url' to 'path'.
docstring_tokens: Download and unpack an archive at url to path .
function: def download_archive(url, path, force, root=None):
    """Download and unpack an archive at 'url' to 'path'."""
    # Cleaning cached archive if necessary.
    if force and os.path.exists(path):
      os.remove(path)
  
    # Download and unpack archive.
    if os.path.exists(path):
      status('File already exists, skipping download: %s' % path)
    else:
      status('Downloading %s to %s' % (url, path))
      download(url, path)
    return unpack_archive(path, cfg.src_dir, root)
function_tokens: def download_archive ( url , path , force , root = None ) : # Cleaning cached archive if necessary. if force and os . path . exists ( path ) : os . remove ( path ) # Download and unpack archive. if os . path . exists ( path ) : status ( 'File already exists, skipping download: %s' % path ) else : status ( 'Downloading %s to %s' % ( url , path ) ) download ( url , path ) return unpack_archive ( path , cfg . src_dir , root )