def attach_window_icon(root, icon):
    "Generate and use the icon in the window's corner."
    with open('tree.ico', 'wb') as file:
        file.write(zlib.decompress(base64.b64decode(ICON)))
    root.iconbitmap('tree.ico')
    os.remove('tree.ico')
Generate and use the icon in the window's corner.
recipes/Python/577635_Directory_Pruner_3/recipe-577635.py