Fixed ReadTheDocs

This commit is contained in:
Fabio Manganiello 2018-11-01 19:42:40 +01:00
parent 6bc976cf89
commit bf52304758
2 changed files with 8 additions and 1 deletions

View File

@ -181,6 +181,8 @@ intersphinx_mapping = {'https://docs.python.org/': None}
todo_include_todos = True todo_include_todos = True
autodoc_mock_imports = ['googlesamples.assistant.grpc.audio_helpers', autodoc_mock_imports = ['googlesamples.assistant.grpc.audio_helpers',
'google.assistant.embedded',
'tenacity',
'smartcard', 'smartcard',
'Leap', 'Leap',
'oauth2client', 'oauth2client',
@ -190,7 +192,9 @@ autodoc_mock_imports = ['googlesamples.assistant.grpc.audio_helpers',
'Adafruit_IO', 'Adafruit_IO',
'pyperclip', 'pyperclip',
'dbus', 'dbus',
'inputs' 'inputs',
'inotify',
'omxplayer',
] ]
sys.path.insert(0, os.path.abspath('../..')) sys.path.insert(0, os.path.abspath('../..'))

View File

@ -2,11 +2,14 @@ import sys
import logging import logging
import traceback import traceback
from functools import wraps
from platypush.config import Config from platypush.config import Config
from platypush.message.response import Response from platypush.message.response import Response
from platypush.utils import get_decorators from platypush.utils import get_decorators
def action(f): def action(f):
@wraps(f)
def _execute_action(*args, **kwargs): def _execute_action(*args, **kwargs):
output = None output = None
errors = [] errors = []