def get_app_icon():
    if hasattr(sys, 'frozen') and getattr(sys, 'frozen') == 'windows_exe':
        return wx.Icon(sys.argv[0], wx.BITMAP_TYPE_ICO)
How do you load an embedded icon from an exe file with PyWin32?