From a0dbac6eca32cdad4caf9f0d565f29e207ac75ba Mon Sep 17 00:00:00 2001 From: dutchie031 Date: Thu, 1 May 2025 21:58:06 +0200 Subject: [PATCH] Fixed compilation script --- SpearheadCompile.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/SpearheadCompile.py b/SpearheadCompile.py index 0850202..9725eb0 100644 --- a/SpearheadCompile.py +++ b/SpearheadCompile.py @@ -31,12 +31,13 @@ def compile(root, target): compiled += string compiled += "\nend --Main\n" - apiFileName = os.path.join(root, "api" , "SpearheadApi.lua") - with open(apiFileName, 'r') as apiFile: - part = "do --Spearhead API\n" - part += apiFile.read() - part += "\nend --Spearhead API\n" - compiled += part + # Legacy, Spearhead API is now added as part of the classes + # apiFileName = os.path.join(root, "api" , "SpearheadApi.lua") + # with open(apiFileName, 'r') as apiFile: + # part = "do --Spearhead API\n" + # part += apiFile.read() + # part += "\nend --Spearhead API\n" + # compiled += part with open(target, "w") as targetFile: targetFile.write(compiled)