code: def pwd(editor, location):
      " Change working directory. "
      try:
          os.chdir(location)
      except OSError as e:
          editor.show_message('{}'.format(e)f pwd(editor, location):
      " Change working directory. "
      try:
          os.chdir(location)
      except OSError as e:
          editor.show_message('{}'.format(e))
docs: Change working directory.