Пример #1
0
def application():

    # Define entrypoint-specific CLI arguments and parse them

    parser.prog, parser.description = "application", "Application description"

    # configure logging subsystem

    logging.config.dictConfig(settings.application.logging)

    logger = logging.getLogger(f"{__package__}.application")

    # run registered validators for configuration parameters

    settings.validate()

    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

    logger.info("application started successfully")
Пример #2
0
import socket 
import os
import re
import shutil
import download
import extract
import update
import dixie
import session
import getIni


socket.setdefaulttimeout(10) # 10 seconds 

import settings
settings.validate()

VERSION     = '2.3.2'

ADDON       = xbmcaddon.Addon(dixie.ID)
HOME        = ADDON.getAddonInfo('path')
TITLE       = 'OnTapp.TV'
MASHMODE    = (ADDON.getSetting('mashmode') == 'true')
DIXIEURL    = dixie.GetSetting('dixie.url').upper()
DIXIELOGOS  = dixie.GetSetting('dixie.logo.folder')
SKIN        = ADDON.getSetting('dixie.skin')
SKINVERSION = '9'
INIVERSION  = '1'

addon       = xbmcaddon.Addon()
addonid     = addon.getAddonInfo('id')
Пример #3
0
 def read_config_file(self, name):
     print(name)
     with open(name, "r") as settings_file:
         user_settings = yaml.safe_load(settings_file)
     self.context = settings.validate(user_settings)