From 5265b02bf722e0fe84245fea64b710e22d46a49a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Sun, 18 Aug 2019 21:38:35 +0200 Subject: [PATCH] Make sure __base__ is the first place we look for packages. --- context.py | 2 +- context_play.py | 2 +- default.py | 2 +- service.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/context.py b/context.py index fb8ec9ee..dbcc7aff 100644 --- a/context.py +++ b/context.py @@ -16,7 +16,7 @@ __base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'reso __libraries__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8') sys.path.insert(0, __libraries__) -sys.path.append(__base__) +sys.path.insert(0, __base__) ################################################################################################# diff --git a/context_play.py b/context_play.py index 1c02d151..d4a4ebfb 100644 --- a/context_play.py +++ b/context_play.py @@ -16,7 +16,7 @@ __base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'reso __libraries__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8') sys.path.insert(0, __libraries__) -sys.path.append(__base__) +sys.path.insert(0, __base__) ################################################################################################# diff --git a/default.py b/default.py index 2b592cc6..d79e2740 100644 --- a/default.py +++ b/default.py @@ -16,7 +16,7 @@ __base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'reso __libraries__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8') sys.path.insert(0, __libraries__) -sys.path.append(__base__) +sys.path.insert(0, __base__) ################################################################################################# diff --git a/service.py b/service.py index 95e28085..697807ae 100644 --- a/service.py +++ b/service.py @@ -17,7 +17,7 @@ __base__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'reso __libraries__ = xbmc.translatePath(os.path.join(__addon__.getAddonInfo('path'), 'libraries')).decode('utf-8') sys.path.insert(0, __libraries__) -sys.path.append(__base__) +sys.path.insert(0, __base__) #################################################################################################