X-Git-Url: https://code.kerkeslager.com/?p=fur;a=blobdiff_plain;f=main.py;fp=main.py;h=c2592c6c1e489da55072087180bf7387e547a96c;hp=5d9f9deb0eed5ace953b1e3fef89710fc26e0a47;hb=6c2894f00c8daca3d85c7ce850da711b9f7effc5;hpb=4ba4fcfbb2712a22a9f3211182c9ec6cee9dd0f8 diff --git a/main.py b/main.py index 5d9f9de..c2592c6 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ transformed = transformation.transform(parsed) generated = generation.generate(transformed) assert source_path.endswith('.fur') -destination_path = source_path[:-4] + '.c' +destination_path = source_path + '.c' with open(destination_path, 'w') as f: f.write(generated)