Skip to content

Commit

Permalink
Re #4311. Return the docstring of the proxied object.
Browse files Browse the repository at this point in the history
This helps the correct documentation string show up in the IPython console.
I've also turned on automatic docstring generation in our sip call.
  • Loading branch information
RussellTaylor committed Oct 24, 2013
1 parent c666845 commit 856d3ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidPlot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ set( SRC_UNITY_IGNORE_FILES )
add_custom_command ( OUTPUT ${SIP_SRC_AUTO}
COMMAND ${SIP_EXECUTABLE}
-I ${PYQT4_SIP_DIR} -I ${CMAKE_CURRENT_SOURCE_DIR}/../MantidQt/Python ${PYQT4_SIP_FLAGS}
-c ${CMAKE_CURRENT_BINARY_DIR} -j1 -w
-c ${CMAKE_CURRENT_BINARY_DIR} -j1 -w -o
${SIP_SPEC}
DEPENDS src/qti.sip ${SIP_HDRS}
COMMENT "Generating python bindings using sip"
Expand Down
1 change: 1 addition & 0 deletions Code/Mantid/MantidPlot/mantidplotpy/proxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def __init__(self, callable):
QtCore.QObject.__init__(self)
self.moveToThread(QtGui.qApp.thread())
self.__callable = callable
self.__call__.__func__.__doc__ = callable.__doc__

def dispatch(self, *args, **kwargs):
"""Dispatches a call to callable with
Expand Down

0 comments on commit 856d3ad

Please sign in to comment.