trying to get bundled deps to load

This commit is contained in:
cere 2024-02-21 01:28:55 -05:00
parent ecca301ceb
commit 70734c7c59
2 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,8 @@
Background service which launches the http service. Background service which launches the http service.
""" """
import sys, os
import time import time
from typing import Dict from typing import Dict
@ -26,6 +28,8 @@ from librespot.core import Session
SAVE_TO_RECENTLY_PLAYED_FILE = True SAVE_TO_RECENTLY_PLAYED_FILE = True
sys.path.insert(1, os.path.join(os.path.dirname(__file__), "deps"))
SPOTIFY_ADDON = xbmcaddon.Addon(id=ADDON_ID) SPOTIFY_ADDON = xbmcaddon.Addon(id=ADDON_ID)

View File

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
plugin.audio.spotify plugin.audio.librespot
Spotify player for Kodi Spotify player for Kodi
Main service entry point Main service entry point
""" """
@ -10,8 +10,11 @@
if __name__ == "__main__": if __name__ == "__main__":
import platform import platform
import sys import sys
import os
from resources.lib.utils import log_msg from resources.lib.utils import log_msg
sys.path.insert(1, os.path.join(os.path.dirname(__file__), "resources", "lib", "deps"))
log_msg(f"Python version: {sys.version}.") log_msg(f"Python version: {sys.version}.")
log_msg(f"Python exe: {sys.executable}.") log_msg(f"Python exe: {sys.executable}.")
log_msg(f"Platform: {platform.platform()}.") log_msg(f"Platform: {platform.platform()}.")