mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-22 16:02:46 +00:00
Remove path injection
This commit is contained in:
parent
256c401ef9
commit
086a704f24
8 changed files with 4 additions and 81 deletions
18
default.py
18
default.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue