02_bootstrap-scripts-python/bootstrap/context.py [178:196]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if "pathfilter" in self.options.keys():
            expr = parse("$" + self.options["pathfilter"])
            try:
                obj = expr.find(obj)[0].value
            except Exception as e:
                print(e)
                print(f"Primary: {self.indicator}")
                print(f"Options: {self.options}")
                print("Filter returned no results, returning null")
                return {}
        if "key" in self.options.keys():
            new_values: dict = {}
            stringToNestedObject(
                self.options["key"], obj, new_values, separator=sep)
            obj = new_values
        return obj

    @staticmethod
    def get_context_string() -> str:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



02_bootstrap-scripts-python/bootstrap/context.py [216:234]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if "pathfilter" in self.options.keys():
            expr = parse("$" + self.options["pathfilter"])
            try:
                obj = expr.find(obj)[0].value
            except Exception as e:
                print(e)
                print(f"Primary: {self.indicator}")
                print(f"Options: {self.options}")
                print("Filter returned no results, returning null")
                return {}
        if "key" in self.options.keys():
            new_values: dict = {}
            stringToNestedObject(
                self.options["key"], obj, new_values, separator=sep)
            obj = new_values
        return obj

    @staticmethod
    def get_context_string() -> str:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



