From af0ac2604536f28888803470b6b87bd0b23829ee Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 27 Jul 2017 17:43:51 +0200 Subject: [PATCH] Move media path to variables --- resources/lib/dialogs/servermanual.py | 6 +----- resources/lib/variables.py | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/lib/dialogs/servermanual.py b/resources/lib/dialogs/servermanual.py index 861257a8..78767d3c 100644 --- a/resources/lib/dialogs/servermanual.py +++ b/resources/lib/dialogs/servermanual.py @@ -1,13 +1,11 @@ # -*- coding: utf-8 -*- ############################################################################### from logging import getLogger -from os.path import join import xbmcgui import connect.connectionmanager as connectionmanager -from utils import language as lang, tryEncode, tryDecode -import variables as v +from utils import language as lang, tryDecode ############################################################################### log = getLogger("PLEX."+__name__) @@ -28,8 +26,6 @@ ERROR = { 'Invalid': 1, 'Empty': 2 } - -MEDIA = tryEncode(join(v.ADDON_PATH, 'resources', 'skins', 'default', 'media')) ############################################################################### diff --git a/resources/lib/variables.py b/resources/lib/variables.py index bddcb50a..de13b26b 100644 --- a/resources/lib/variables.py +++ b/resources/lib/variables.py @@ -28,6 +28,7 @@ ADDON_NAME = 'PlexKodiConnect' ADDON_ID = 'plugin.video.plexkodiconnect' ADDON_VERSION = _ADDON.getAddonInfo('version') ADDON_PATH = tryDecode(_ADDON.getAddonInfo('path')) +MEDIA_PATH = join(ADDON_PATH, 'resources', 'skins', 'default', 'media') KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1) KODIVERSION = int(xbmc.getInfoLabel("System.BuildVersion")[:2])