code: def set_working_directory(self, dirname):
          
          if dirname:
              self.main.workingdirectory.chdir(dirname, refresh_explorer=True,
                                               refresh_console=False)
docs: Set current working directory.
          In the workingdirectory and explorer plugins.