From e33b624194e3c063f2e09df1246e0ec3f9107c0c Mon Sep 17 00:00:00 2001 From: daanvandevliet <67875201+daanvandevliet@users.noreply.github.com> Date: Fri, 10 Mar 2023 20:22:43 +0100 Subject: [PATCH] Update utils.py Upgrade to Nexus (Kodi 20) --- src/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils.py b/src/utils.py index 86bf53a..8e63173 100644 --- a/src/utils.py +++ b/src/utils.py @@ -1,5 +1,6 @@ # coding=utf-8 import os +import xbmcvfs import re from collections import OrderedDict @@ -16,8 +17,8 @@ ADDON_ICON = ADDON.getAddonInfo("icon") ADDON_PROFILE = ADDON.getAddonInfo("profile") ADDON_VERSION = ADDON.getAddonInfo("version") -PATH_ADDONS = xbmc.translatePath("special://home/addons/") -PATH_TEMP = xbmc.translatePath("special://temp") +PATH_ADDONS = xbmcvfs.translatePath("special://home/addons/") +PATH_TEMP = xbmcvfs.translatePath("special://temp") if not ADDON_PATH: ADDON_PATH = '..'