def do_cd(self, line): if self.check_cd(): self.set_command_blocked(False) new_path = cd(self.real_path, line) if new_path: self.real_path = new_path self.current_path = self.generate_fake_path(self.real_path) self.set_prompt() else: self.set_command_blocked(True) print("Nice try! But you entered an unexpected destination path.")
def do_cd(self, line): if self.check_cd(): self.set_command_blocked(False) new_path = cd(self.real_path, line) if new_path: self.real_path = new_path self.current_path = self.generate_fake_path(self.real_path) self.set_prompt() else: self.set_command_blocked(True) print ( "Non male! Ma hai scritto un percorso inaspettato." )
def do_cd(self, line): if self.check_cd(): self.set_command_blocked(False) new_path = cd(self.real_path, line) if new_path: self.real_path = new_path self.current_path = self.generate_fake_path(self.real_path) self.set_prompt() else: self.set_command_blocked(True) print ( "Nice try! But you entered an unexpected destination path." )
def do_cd(self, line): if self.__check_cd(line): self._set_command_blocked(False) new_path = cd(self._location.get_real_path(), line) if not not_locked(new_path): self._set_command_blocked(True) print(_("bash: cd: " + line + ": Permission denied")) elif new_path: self._location.set_real_path(new_path) self._set_prompt() else: self._set_command_blocked(True) print( _("Nice try! But you entered an unexpected destination path."))
def do_cd(self, line): if self.__check_cd(line): self._set_command_blocked(False) new_path = cd(self._location.get_real_path(), line) if not not_locked(new_path): self._set_command_blocked(True) print ( _("bash: cd: " + line + ": Permission denied") ) elif new_path: self._location.set_real_path(new_path) self._set_prompt() else: self._set_command_blocked(True) print (_("Nice try! But you entered an unexpected destination path."))