python modernize.py --no-six -f libmodernize.fixes.fix_print -w With manual fixes as the import was put always on top.
21 lines
577 B
Python
Executable file
21 lines
577 B
Python
Executable file
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
from __future__ import print_function
|
|
|
|
import sys
|
|
import resources.lib.test.common_test as common_xbmc
|
|
import resources.lib.constants as constants
|
|
|
|
from resources.lib.actions import actions
|
|
|
|
print(sys.argv)
|
|
if len(sys.argv) < 2:
|
|
actions[constants.DISPLAY_MENU]()._do()
|
|
else:
|
|
params = common_xbmc.parse_params(sys.argv[1])
|
|
#print params
|
|
action = params.get("action")
|
|
if (action):
|
|
actions[action]()._do(params)
|
|
else:
|
|
common_xbmc.display_error(" ARGV Nothing done.. verify params " + repr(params))
|