/usr/lib/python2.7/dist-packages/apptools/help/help_plugin/help_code.py is in python-apptools 4.3.0-1.
This file is owned by root:root, with mode 0o644.
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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | """ The help code implementation.
This may be used to define examples to be displayed or demos to be run.
:Copyright: 2008, Enthought Inc.
:License: BSD
:Author: Janet Swisher
"""
# This software is provided without warranty under the terms of the BSD
# license included in AppTools/trunk/LICENSE.txt and may be redistributed only
# under the conditions described in the aforementioned license. The license
# is also available online at http://www.enthought.com/licenses/BSD.txt
# Thanks for using Enthought open source!
from apptools.preferences.api import PreferencesHelper
from traits.api import File, Str, implements
from i_help_code import IHelpCode
class HelpCode(PreferencesHelper):
""" The implementation for help codes.
A help code is defined by a UI label and a filename.
"""
implements(IHelpCode)
#### IHelpCode interface / Preferences #####################################
# NOTE: This class inherits preferences_page from PreferencesHelper.
# The UI label for the help code, which appears in menus or dialogs.
label = Str
# The path to the entry point, which can be full, or relative to the Python
# installation directory (sys.prefix).
filename = File
# The code to execute. This is executed when filename is None or an empty
# string.
code = Str
|