def prompt(self, args=None): # run shell instead of printing prompt and close window on shell exit execConsole() self.close() # suppress the prompt return None
def prompt(self, args=None): # run shell instead of printing prompt and close window on shell exit execConsole() self.close() # suppress the prompt return None
def run_shell(self): """Launch a shell.""" if os.path.exists("/bin/bash"): util.execConsole() else: # TODO: FIXME -> move to UI (check via module api?) print(_("Unable to find /bin/bash to execute! Not starting shell.")) time.sleep(5)