weboob-devel/contrib/plugin.video.videoobmc/default_test.py
Laurent Bachelier 74a4ef6723 Use the print function everywhere
python modernize.py --no-six -f libmodernize.fixes.fix_print -w

With manual fixes as the import was put always on top.
2014-10-06 17:00:17 +02:00

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))