@cached_property
    def _get_context_object ( self ):
        object_name = self.object_name
        context_key = object_name.split( '.', 1 )[0]
        if (object_name != '') and (context_key in self.ui.context):
            return self.ui.context[ context_key ]

        # This handles the case of a 'ListItemProxy', which is not in the
        # ui.context, but is the editor 'object':
        return self.object

    #---------------------------------------------------------------------------
    #  Returns the extended trait name being edited (Property implementation):
    #---------------------------------------------------------------------------
Automate the installation of a Python package (or a cython
dataset/ETHPy150Open enthought/traitsui/traitsui/editor.py/Editor._get_context_object--crossover with--dataset/ETHPy150Open kivy/python-for-android/pythonforandroid/recipe.py/PythonRecipe.install_python_package