mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
chrome: default.py cleanup
- don't import expensive 'oe' module for a log function with wrong module name printout. - fix "WARNING <general>: CPythonInvoker(1, /storage/.kodi/addons/browser.chrome/default.py): the python script "/storage/.kodi/addons/browser.chrome/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE"
This commit is contained in:
parent
d0a4824728
commit
2e7c831e8b
@ -9,9 +9,7 @@ import xbmcaddon
|
||||
import subprocess
|
||||
import json
|
||||
|
||||
sys.path.append('/usr/share/kodi/addons/@DISTRO_PKG_SETTINGS_ID@')
|
||||
|
||||
import oe
|
||||
import xbmc
|
||||
|
||||
__addon__ = xbmcaddon.Addon();
|
||||
__path__ = os.path.join(__addon__.getAddonInfo('path'), 'bin') + '/'
|
||||
@ -49,7 +47,7 @@ def startchrome(args):
|
||||
__addon__.getSetting('HOMEPAGE')
|
||||
subprocess.call(__path__ + 'chrome-start ' + chrome_params, shell=True, env=new_env)
|
||||
except Exception as e:
|
||||
oe.dbg_log('chrome', e)
|
||||
xbmc.log('## Chrome Error:' + repr(e), xbmc.LOGERROR)
|
||||
|
||||
def isRuning(pname):
|
||||
tmp = os.popen("ps -Af").read()
|
||||
@ -101,3 +99,4 @@ else:
|
||||
time.sleep(1)
|
||||
resumeXbmc()
|
||||
|
||||
del __addon__
|
||||
|
Loading…
x
Reference in New Issue
Block a user