def new(name, config): if config: config = Config() code.interact(local=locals()) swap = SWAP(name, config) else: swap = SWAP(name) swap.save()
def new(name, config): _c = config config = Config(name) if _c: code.interact(local=locals()) swap = SWAP(config) print(config) swap.save()
def clear(name): swap = SWAP.load(name) swap = SWAP(name, swap.config) swap.save()