scruffy/env.py
def add(self, **kwargs):
        """
        Add objects to the environment.
        """
        for key in kwargs:
            if type(kwargs[key]) == str:
                self._children[key] = Directory(kwargs[key])
            else:
                self._children[key] = kwargs[key]
            self._children[key]._env = self
            self._children[key].apply_config(ConfigApplicator(self.config))
            self._children[key].prepare()
def add(self, **kwargs):
        """
        Add objects to the environment.
        """
        for key in kwargs:
            if type(kwargs[key]) == str:
                self._children[key] = Directory(kwargs[key])
            else:
                self._children[key] = kwargs[key]
            self._children[key]._env = self
            self._children[key].apply_config(ConfigApplicator(self.config))
            self._children[key].prepare()
def add ( self , * * kwargs ) : for key in kwargs : if type ( kwargs [ key ] ) == str : self . _children [ key ] = Directory ( kwargs [ key ] ) else : self . _children [ key ] = kwargs [ key ] self . _children [ key ] . _env = self self . _children [ key ] . apply_config ( ConfigApplicator ( self . config ) ) self . _children [ key ] . prepare ( )
Add objects to the environment.
Add objects to the environment .