mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
hdhomerun: update xbmc.translatePath (deprecated) to xbmcvfs.translatePath
This commit is contained in:
parent
f11af7b00d
commit
51a86b869d
@ -1,14 +1,16 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||||
|
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import xbmcaddon
|
import xbmcaddon
|
||||||
|
import xbmcvfs
|
||||||
|
|
||||||
__settings__ = xbmcaddon.Addon(id = 'driver.dvb.hdhomerun')
|
__settings__ = xbmcaddon.Addon(id = 'driver.dvb.hdhomerun')
|
||||||
__cwd__ = __settings__.getAddonInfo('path')
|
__cwd__ = __settings__.getAddonInfo('path')
|
||||||
__resources_lib__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib'))
|
__resources_lib__ = xbmcvfs.translatePath(os.path.join(__cwd__, 'resources', 'lib'))
|
||||||
__settings_xml__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'settings.xml'))
|
__settings_xml__ = xbmcvfs.translatePath(os.path.join(__cwd__, 'resources', 'settings.xml'))
|
||||||
|
|
||||||
if len(sys.argv) == 2 and sys.argv[1] == 'refresh_tuners':
|
if len(sys.argv) == 2 and sys.argv[1] == 'refresh_tuners':
|
||||||
sys.path.append(__resources_lib__)
|
sys.path.append(__resources_lib__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user