1#!/usr/bin/python 2# -*- coding: utf-8 -*- 3from __future__ import print_function 4 5import sys 6import resources.lib.test.common_test as common_xbmc 7import resources.lib.constants as constants 8 9from resources.lib.actions import actions 10 11print(sys.argv) 12if len(sys.argv) < 2: 13 actions[constants.DISPLAY_MENU]()._do() 14else: 15 params = common_xbmc.parse_params(sys.argv[1]) 16 #print params 17 action = params.get("action") 18 if (action): 19 actions[action]()._do(params) 20 else: 21 common_xbmc.display_error(" ARGV Nothing done.. verify params " + repr(params)) 22