msticpy/config/compound_ctrls.py
def _add_control_to_map(self, path, ctrl):
        """Set a value at dotted path location in self.control_map dict."""
        ctrl_path = path.replace(f"{self.comp_path}.", "")
        ctrl_map = self.control_map
        for elem in ctrl_path.split("."):
            if not isinstance(ctrl_map.get(elem), dict):
                ctrl_map[elem] = ctrl
                break
            ctrl_map = ctrl_map.get(elem)
Set a value at dotted path location in self.control_map dict.
Set a value at dotted path location in self.control_map dict.
Set a value at dotted path location in self . control_map dict .
def _add_control_to_map(self, path, ctrl):
        ctrl_path = path.replace(f"{self.comp_path}.", "")
        ctrl_map = self.control_map
        for elem in ctrl_path.split("."):
            if not isinstance(ctrl_map.get(elem), dict):
                ctrl_map[elem] = ctrl
                break
            ctrl_map = ctrl_map.get(elem)
def _add_control_to_map ( self , path , ctrl ) : ctrl_path = path . replace ( f"{self.comp_path}." , "" ) ctrl_map = self . control_map for elem in ctrl_path . split ( "." ) : if not isinstance ( ctrl_map . get ( elem ) , dict ) : ctrl_map [ elem ] = ctrl break ctrl_map = ctrl_map . get ( elem )
Set a value at dotted path location in self.control_map dict.
Set a value at dotted path location in self . control_map dict .
"""Set a value at dotted path location in self.control_map dict."""
self
path
ctrl