Remove path injection

This commit is contained in:
Odd Stråbø 2021-10-10 19:44:32 +02:00
parent 256c401ef9
commit 086a704f24
8 changed files with 4 additions and 81 deletions

View file

@ -3,24 +3,6 @@ from __future__ import division, absolute_import, print_function, unicode_litera
#################################################################################################
import os
import sys
from kodi_six import xbmc, xbmcaddon, xbmcvfs
#################################################################################################
kodi_version = int(xbmc.getInfoLabel('System.BuildVersion')[:2])
__addon__ = xbmcaddon.Addon(id='plugin.video.jellyfin')
if kodi_version > 18:
__base__ = xbmcvfs.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'jellyfin_kodi'))
else:
__base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'jellyfin_kodi'))
sys.path.insert(0, __base__)
#################################################################################################
from entrypoint import Events # noqa: E402
from helper import LazyLogger # noqa: E402