diff --git a/packages/addons/driver/hdhomerun/source/resources/actions.py b/packages/addons/driver/hdhomerun/source/resources/actions.py index ca6d98c455..3c7283c291 100644 --- a/packages/addons/driver/hdhomerun/source/resources/actions.py +++ b/packages/addons/driver/hdhomerun/source/resources/actions.py @@ -1,14 +1,16 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) +# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv) import os import sys import xbmcaddon +import xbmcvfs __settings__ = xbmcaddon.Addon(id = 'driver.dvb.hdhomerun') __cwd__ = __settings__.getAddonInfo('path') -__resources_lib__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib')) -__settings_xml__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'settings.xml')) +__resources_lib__ = xbmcvfs.translatePath(os.path.join(__cwd__, 'resources', 'lib')) +__settings_xml__ = xbmcvfs.translatePath(os.path.join(__cwd__, 'resources', 'settings.xml')) if len(sys.argv) == 2 and sys.argv[1] == 'refresh_tuners': sys.path.append(__resources_lib__)