'Save the config file.'

def save(self):

    if (self._configdir is None):
        return
    if (not os.path.exists(self._configdir)):
        os.makedirs(self._configdir, 493)
    log.destroy.debug('Saving    config    to    {}'.format(self._configfile))
    with qtutils.savefile_open(self._configfile) as f:
        self.write(f)
