# Path: vise/constants.py
# WELCOME_URL = 'vise:welcome'
# 
# Path: vise/resources.py
# @lru_cache(maxsize=512)
# def get_icon(name):
#     if not name.startswith('images/'):
#         name = 'images/' + name
#     return QIcon(get_data_as_path(name))
# 
# def get_data(name):
#     return get_data_as_file(name).read()


import base64
from PyQt6.QtCore import QUrl, QByteArray
from .constants import WELCOME_URL as WU
from .resources import get_icon, get_data
#!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>




WELCOME_URL = QUrl(WU)


def welcome_icon():
    if not hasattr(welcome_icon, 'icon'):
        welcome_icon.icon = get_icon('vise.svg')
    return welcome_icon.icon


def get_welcome_html():
    if not hasattr(get_welcome_html, 'html'):
        d = get_data('welcome.html').decode('utf-8')

# Path: vise/constants.py
# WELCOME_URL = 'vise:welcome'
# 
# Path: vise/resources.py
# @lru_cache(maxsize=512)
# def get_icon(name):
#     if not name.startswith('images/'):
#         name = 'images/' + name
#     return QIcon(get_data_as_path(name))
# 
# def get_data(name):
#     return get_data_as_file(name).read()


# Path: vise/welcome.py
import base64
from PyQt6.QtCore import QUrl, QByteArray
from .constants import WELCOME_URL as WU
from .resources import get_icon, get_data

#!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>




WELCOME_URL = QUrl(WU)


def welcome_icon():
    if not hasattr(welcome_icon, 'icon'):
        welcome_icon.icon = get_icon('vise.svg')
    return welcome_icon.icon


def get_welcome_html():
    if not hasattr(get_welcome_html, 'html'):
        d = get_data('welcome.html').decode('utf-8')

        ic = get_data('images/vise.svg')