import sys
import os

def resourcePath(relative):
    """ Get absolute path to resource, works for dev and for PyInstaller """
    try:
        # PyInstaller creates a temp folder and stores path in _MEIPASS
        base_path = sys._MEIPASS
    except Exception:
        base_path = os.path.abspath(os.path.join(os.path.dirname(sys.modules[__name__].__file__), 'assets'))

    return os.path.join(base_path, relative)


72f9ed47144a4bb3243de5d6e95ee7de0c244c27
<mask token>

<mask token>


def resourcePath(relative):
    """ Get absolute path to resource, works for dev and for PyInstaller """
    try:
        base_path = sys._MEIPASS
    except Exception:
        base_path = os.path.abspath(os.path.join(os.path.dirname(sys.
            modules[__name__].__file__), 'assets'))
    return os.path.join(base_path, relative)

import sys
import os


def resourcePath(relative):
    """ Get absolute path to resource, works for dev and for PyInstaller """
    try:
        base_path = sys._MEIPASS
    except Exception:
        base_path = os.path.abspath(os.path.join(os.path.dirname(sys.
            modules[__name__].__file__), 'assets'))
    return os.path.join(base_path, relative)

import sys
import os

def resourcePath(relative):
    """ Get absolute path to resource, works for dev and for PyInstaller """
    try:
        # PyInstaller creates a temp folder and stores path in _MEIPASS
        base_path = sys._MEIPASS
    except Exception:
        base_path = os.path.abspath(os.path.join(os.path.dirname(sys.modules[__name__].__file__), 'assets'))

    return os.path.join(base_path, relative)

