intficpy/parser.py
def _getObjectTarget(self, which_obj, obj_words):
        """
        Get the target IFPObject for a list of words, if applicable
        """
        scope = getattr(self.command.verb, f"{which_obj[:1]}scope")
        far_obj = getattr(self.command.verb, f"far_{which_obj}")
        obj_direction = getattr(self.command.verb, f"{which_obj}_direction")

        if not isinstance(obj_words, list):
            # assume that obj_words already contains the IFPObject
            return obj_words

        if scope in ("text", "direction"):
            return " ".join(obj_words)

        return self.getThing(obj_words, scope, far_obj, obj_direction,)

        Get the target IFPObject for a list of words, if applicable
        
Get the target IFPObject for a list of words, if applicable
Get the target IFPObject for a list of words if applicable
def _getObjectTarget(self, which_obj, obj_words):
        scope = getattr(self.command.verb, f"{which_obj[:1]}scope")
        far_obj = getattr(self.command.verb, f"far_{which_obj}")
        obj_direction = getattr(self.command.verb, f"{which_obj}_direction")
        if not isinstance(obj_words, list):
            return obj_words
        if scope in ("text", "direction"):
            return " ".join(obj_words)
        return self.getThing(obj_words, scope, far_obj, obj_direction,)
def _getObjectTarget ( self , which_obj , obj_words ) : scope = getattr ( self . command . verb , f"{which_obj[:1]}scope" ) far_obj = getattr ( self . command . verb , f"far_{which_obj}" ) obj_direction = getattr ( self . command . verb , f"{which_obj}_direction" ) if not isinstance ( obj_words , list ) : return obj_words if scope in ( "text" , "direction" ) : return " " . join ( obj_words ) return self . getThing ( obj_words , scope , far_obj , obj_direction , )
Get the target IFPObject for a list of words, if applicable
Get the target IFPObject for a list of words if applicable
"""
        Get the target IFPObject for a list of words, if applicable
        """ # assume that obj_words already contains the IFPObject
self
which_obj
obj_words