diff --git a/src/psm_parser.py b/src/psm_parser.py index 10064d9..3031dba 100644 --- a/src/psm_parser.py +++ b/src/psm_parser.py @@ -172,7 +172,7 @@ def write_psm(name, items: list[str], filename: Path = Path("Connector.psm1")) - output += get_code.replace("!NAME!", name) output += convert_from.replace("!NAME!", name).replace("!MAPS!", define_maps(items)) output += class_definition.replace("!NAME!", name).replace("!VARIABLES!", define_variables(items)).replace("!STRINGS!", define_strings(items)) - with open(filename, "w") as f: + with open(filename, "a") as f: f.write(output) print(output) pass \ No newline at end of file