/usr/share/weboob/plugin.video.videoobmc/default_test.py is in weboob 1.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/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))
|