From 47e6ad50ab5d89fdd2f37b326552a0b23615e2ff Mon Sep 17 00:00:00 2001 From: merspieler Date: Thu, 25 Apr 2019 09:18:11 +0000 Subject: [PATCH] Removed file extension for afterbuild script and pass tile name Signed-off-by: merspieler --- scripts/worldbuild.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/worldbuild.py b/scripts/worldbuild.py index 5c27a38..efb500c 100755 --- a/scripts/worldbuild.py +++ b/scripts/worldbuild.py @@ -114,14 +114,14 @@ def after_build(name): run("zip -rq projects/worldbuild/output/error/" + name + ".zip projects/worldbuild/scenery/ ") # Trigger failed after build script - if os.path.isfile("./scripts/afterbuild-failed.sh"): - os.system("./scripts/afterbuild-failed.sh &") + if os.path.isfile("./scripts/afterbuild-failed"): + os.system("./scripts/afterbuild-failed " + name + " &") else: run("zip -rq projects/worldbuild/output/" + name + ".zip projects/worldbuild/scenery/ ") # Trigger after build script - if os.path.isfile("./scripts/afterbuild-success.sh"): - os.system("./scripts/afterbuild-success.sh &") + if os.path.isfile("./scripts/afterbuild-success"): + os.system("./scripts/afterbuild-success " + name + " &") run("rm -r projects/worldbuild/scenery/*") run("./clear-cache-files worldbuild")