mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
imon-mce: update xbmc.translatePath (deprecated) to xbmcvfs.translatePath
This commit is contained in:
parent
a76dedba7a
commit
f11af7b00d
@ -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__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user