def update(self, fname): if os.path.exists(fname) and not GetOption("silent") and not env.GetOption("help"): print "Restoring previous command-line options from '%s'" % fname vars = Variables(fname, self.opts) vars.AddVariables(*self.variables) vars.Update(env) vars.Save(fname, env)
def update(self, fname='options.cache'): if os.path.exists(fname) and not GetOption("silent") and\ not GetOption("help"): print """Note: Restoring previous command-line options from '%s'. Please delete this file when trying to start from scratch.""" % fname vars = Variables(fname, self.opts) vars.AddVariables(*self.variables) vars.Update(self.env) vars.Save(fname, self.env)