~dennda/memaker/experimental

« back to all changes in this revision

Viewing changes to src/memaker.py

  • Committer: Christopher Denter
  • Date: 2008-01-23 00:35:57 UTC
  • Revision ID: dennda@geekbook-20080123003557-7yd9atgikgvh218r
small bugfix for the --debug option... if you run --debug once, you won't be annoyed by it the next time you start the application unless you pass that option again

Show diffs side-by-side

added added

removed removed

Lines of Context:
463
463
            fileToPickle = file(picklePlace, "r")
464
464
            self.loadedHeads = pickle.load(fileToPickle)
465
465
        else:
466
 
            print "Previously session not found.  Continuing without loading the last session."
 
466
            print "Previously session not found. Continuing without loading the last session."
467
467
 
468
468
    def saveAndQuit(self, widget):
469
469
        """
471
471
        """
472
472
        picklePlace = os.path.expanduser("~/.MeMaker/pickledHeads")
473
473
        fileToUnpickle = file(picklePlace, "w")
 
474
 
 
475
        for obst in self.loadedHeads:
 
476
            self.loadedHeads[obst].debug = False                    # if you used --debug only once, make sure it is not applied on next startup
 
477
 
474
478
        pickle.dump(self.loadedHeads, fileToUnpickle)
475
479
        fileSave = file(os.path.expanduser("~/.MeMaker/conf.conf"), "w")
476
480
        fileSave.write(self.themeLocation)