예제 #1
0
def main():
    screen = Screen()
    input_path, output_path = argparse()

    try:
        input_file = open(input_path, "r")
        output_file = open(output_path, "w+")
    except FileNotFoundError:
        raise SystemExit(USAGE)

    for item in input_file.read().split("\n"):
        output_file.write(screen.change_state(item) + "\n")

    input_file.close()
    output_file.close()