def __getattr__(self, method):
def handler(*args, **kwargs):
args = [str(a).replace(',', '\,') for a in args]
for k, v in kwargs.items():
args.append('{0}={v}'.format(k, str(v).replace(',', '\,')))
if args:
command = '{0}.{1}({2})'.format(self.module, method, ','.join(args))
else:
command = '{0}.{1}'.format(self.module, method)
xbmc.log(command, xbmc.LOGNOTICE)
xbmc.executebuiltin(command)
return handler
评论列表
文章目录