Reduce number of imports

This commit is contained in:
tomkat83 2017-09-10 15:17:35 +02:00
parent 6ed00a7b11
commit 6e482c04d8

View file

@ -1,12 +1,11 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################### ###############################################################################
from logging import getLogger
from os import path as os_path from os import path as os_path
from sys import path as sys_path from sys import path as sys_path
from xbmcaddon import Addon from xbmcaddon import Addon
from xbmc import translatePath, sleep from xbmc import translatePath, sleep, log, LOGERROR
from xbmcgui import Window from xbmcgui import Window
_addon = Addon(id='plugin.video.plexkodiconnect') _addon = Addon(id='plugin.video.plexkodiconnect')
@ -26,12 +25,8 @@ except TypeError:
'lib')).decode() 'lib')).decode()
sys_path.append(_base_resource) sys_path.append(_base_resource)
import loghandler
from pickler import unpickle_me, pickl_window from pickler import unpickle_me, pickl_window
###############################################################################
loghandler.config()
log = getLogger("PLEX."+__name__)
############################################################################### ###############################################################################
if __name__ == "__main__": if __name__ == "__main__":
@ -43,4 +38,4 @@ if __name__ == "__main__":
sleep(50) sleep(50)
result = unpickle_me() result = unpickle_me()
if result is None: if result is None:
log.error('Error encountered, aborting') log('PLEX.%s: Error encountered, aborting' % __name__, level=LOGERROR)