def make_state(): drive_list = dfile.get_drive_list() state = {} for drive in drive_list: project_dict = dfile.make_project_dict(drive) state[drive] = project_dict return state
def familiar_drive(new_drive, old_state): if (dfile.make_project_dict(new_drive) == old_state[new_drive]): return True #print "projects match" if (new_drive in errors): #print "I know about this error" return True else: print """################################## WOAH! LOOKOUT, SOMETHING IS WORNG! %s ##################################""" % new_drive var = raw_input("Continue?") error.errors["%s" % new_drive] = "size_mismatch"