31 lines
655 B
Python
31 lines
655 B
Python
# -*- coding: utf-8 -*-
|
|
# ------------------------------------------------------------
|
|
# XBMC entry point
|
|
# ------------------------------------------------------------
|
|
|
|
import os
|
|
import sys
|
|
|
|
import xbmc
|
|
|
|
# on kodi 18 its xbmc.translatePath, on 19 xbmcvfs.translatePath
|
|
try:
|
|
import xbmcvfs
|
|
xbmc.translatePath = xbmcvfs.translatePath
|
|
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()
|
|
else:
|
|
launcher.run()
|