def resource_path(relative):
    """Adjust path for executable use in executable file"""
    if hasattr(sys, "_MEIPASS"):
        return os.path.join(sys._MEIPASS, relative)
    return os.path.join(relative)
def resource_path ( relative ) : if hasattr ( sys , "_MEIPASS" ) : return os . path . join ( sys . _MEIPASS , relative ) return os . path . join ( relative )
Adjust path for executable use in executable file