* Fix altadefinizione, cinemalibero, eurostreaming, ilgeniodellostreaming e default.py * Fix altadefinizione e Casacinema Co-authored-by: mac12m99 <10120390+mac12m99@users.noreply.github.com>
32 lines
707 B
Python
32 lines
707 B
Python
# -*- coding: utf-8 -*-
|
|
# ------------------------------------------------------------
|
|
# XBMC entry point
|
|
# ------------------------------------------------------------
|
|
|
|
import os
|
|
import sys
|
|
|
|
import xbmc
|
|
|
|
# functions that on kodi 19 moved to xbmcvfs
|
|
try:
|
|
import xbmcvfs
|
|
xbmc.translatePath = xbmcvfs.translatePath
|
|
xbmc.validatePath = xbmcvfs.validatePath
|
|
xbmc.makeLegalFilename = xbmcvfs.makeLegalFilename
|
|
except:
|
|
pass
|
|
from platformcode import config, logger
|
|
|
|
logger.info("init...")
|
|
|
|
librerias = xbmc.translatePath(os.path.join(config.get_runtime_path(), 'lib'))
|
|
sys.path.insert(0, librerias)
|
|
|
|
from platformcode import launcher
|
|
|
|
if sys.argv[2] == "":
|
|
launcher.start()
|
|
|
|
launcher.run()
|