~russo79/mnemosyne-proj/force-matplotlib-pyqt4-backend

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/libmnemosyne/configuration.py

  • Committer: Peter.Bienstman at UGent
  • Date: 2014-05-23 19:12:59 UTC
  • Revision ID: peter.bienstman@ugent.be-20140523191259-n787nf6vw2vnc6il
Fix overzealous warning about sister cards with different tags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
            pass
211
211
        # Set config settings.
212
212
        for cursor in con.execute("select key, value from config"):
213
 
            self[cursor[0]] = eval(cursor[1])             
 
213
            self[cursor[0]] = eval(cursor[1])     
214
214
        con.close()
215
215
 
216
216
    def save(self):
280
280
        for directory in ["history", "plugins", "backups"]:
281
281
            if not exists(join(self.data_dir, directory)):
282
282
                os.mkdir(join(self.data_dir, directory))
283
 
        # Create default configuration.
284
 
        if not exists(join(self.config_dir, "config")):
285
 
            self.save()
286
283
        # Create default config.py.
287
284
        config_file = join(self.config_dir, "config.py")
288
285
        if not exists(config_file):