Logo Search packages:      
Sourcecode: d-feet version File versions  Download package

def dfeet::settings::Settings::write (   self )
Writes configuration settings to the Settings config file.

Definition at line 67 of file settings.py.

                   :
        """
        Writes configuration settings to the Settings config file.
        """        
        for key in self.general:
            if key.endswith('list'):
                self.general[key] = ','.join(self.general[key])
                  
            self.config.set("General", key, self.general[key])
            
        # make sure that the directory that the config file is in exists
        new_file_dir = os.path.split(self.filename)[0]
        if not os.path.isdir(new_file_dir): 
            os.makedirs(new_file_dir)
        file = open(self.filename, 'w')
        self.config.write(file)
        file.close()
        

Generated by  Doxygen 1.6.0   Back to index