imon-mce: update xbmc.translatePath (deprecated) to xbmcvfs.translatePath

This commit is contained in:
heitbaum 2021-03-06 05:05:04 +00:00
parent a76dedba7a
commit f11af7b00d

View File

@ -1,15 +1,17 @@
# 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
__scriptname__ = "IMON MCE Remote driver" __scriptname__ = "IMON MCE Remote driver"
__author__ = "LibreELEC" __author__ = "LibreELEC"
__url__ = "https://libreelec.tv" __url__ = "https://libreelec.tv"
__settings__ = xbmcaddon.Addon(id='driver.remote.imon-mce') __settings__ = xbmcaddon.Addon(id='driver.remote.imon-mce')
__cwd__ = __settings__.getAddonInfo('path') __cwd__ = __settings__.getAddonInfo('path')
__path__ = xbmc.translatePath( os.path.join( __cwd__, 'bin', "imon-mce.service") ) __path__ = xbmcvfs.translatePath( os.path.join( __cwd__, 'bin', "imon-mce.service") )
os.system(__path__) os.system(__path__)