def unzipper(filename, dir_tmp):
    """
    Unzip .lpd file contents to tmp directory.
    :param str filename: filename.lpd
    :param str dir_tmp: Tmp folder to extract contents to
    :return None:
    """
    logger_zips.info("enter unzip")
    # Unzip contents to the tmp directory
    try:
        with zipfile.ZipFile(filename) as f:
            f.extractall(dir_tmp)
    except FileNotFoundError as e:
        logger_zips.debug("unzip: FileNotFound: {}, {}".format(filename, e))
        shutil.rmtree(dir_tmp)
    logger_zips.info("exit unzip")
    return
def unzipper ( filename , dir_tmp ) : logger_zips . info ( "enter unzip" ) try : with zipfile . ZipFile ( filename ) as f : f . extractall ( dir_tmp ) except FileNotFoundError as e : logger_zips . debug ( "unzip: FileNotFound: {}, {}" . format ( filename , e ) ) shutil . rmtree ( dir_tmp ) logger_zips . info ( "exit unzip" ) return
Unzip .lpd file contents to tmp directory.
    :param str filename: filename.lpd
    :param str dir_tmp: Tmp folder to extract contents to
    :return None: