diff --git a/life.py b/life.py index f752d36..0a695a5 100644 --- a/life.py +++ b/life.py @@ -4,6 +4,7 @@ from fixed_consume import FixedConsume import argparse import sys + from output_collector import OutputCollector @@ -51,9 +52,9 @@ def main(config_path): sys.stdout = sys.__stdout__ print(output_collector.get_contents()) + if __name__ == '__main__': parser = argparse.ArgumentParser(description="Run life.py with a specified config file.") parser.add_argument('config_path', type=str, help="Path to the configuration file.") args = parser.parse_args() main(args.config_path) - diff --git a/tests/config_jp.json b/tests/config_ja.json similarity index 97% rename from tests/config_jp.json rename to tests/config_ja.json index 49571e4..ebfc67f 100644 --- a/tests/config_jp.json +++ b/tests/config_ja.json @@ -1,5 +1,5 @@ { - "language": "jp", + "language": "ja", "currency": "JPY", "mark": "¥", "bank_rate": 1.2,