'Set current working directory.
In the workingdirectory and explorer plugins.'

def set_working_directory(self, dirname):

    if (dirname and (not self.testing)):
        self.main.workingdirectory.chdir(dirname, refresh_explorer=True, refresh_console=False)
