コード例 #1
0
    def preloop(self, *args):
        '''
        Add the context object to the command line scope
        '''
        _plugins.create(self)
        self.create_root(*args)

        self.set_prompt(self._cwd())
        return Cmd.preloop(self, *args)