Exemple #1
0
    def run_console(self):
        opts = read_config(self.home_dir)
        opts.home_dir = self.home_dir
        langs[opts.lang].install()
        countries.install(opts.lang)
        self.lang = opts.lang
        from state import Current
        from boss import Manager

        state = Current(self)
        init_config(self.home_dir, opts, state)
        boss = Manager(self, opts, state)
        boss.ipshell = init_ipshell()
        boss.ipshell()
Exemple #2
0
    def setup_app(self):
        opts = read_config(self.home_dir)
        opts.home_dir = self.home_dir
        langs[opts.lang].install()
        countries.install(opts.lang)
        self.lang = opts.lang
        from state import Current
        from boss import Manager

        state = Current(self)
        atexit.register(state.save_pool, self)
        init_config(self.home_dir, opts, state)
        boss = Manager(self, opts, state)
        from gui.winnex import WinNex

        mainwin = WinNex(boss)
        boss.set_mainwin(mainwin)