From 192d4710a2a9a312697a1a9bcc3ea0c34f017a7c Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 11 Oct 2022 21:28:33 +0200 Subject: [PATCH] Update UpdateMoose.py --- .scripts/UpdateMoose.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.scripts/UpdateMoose.py b/.scripts/UpdateMoose.py index 06f39b8927..a19d588820 100644 --- a/.scripts/UpdateMoose.py +++ b/.scripts/UpdateMoose.py @@ -28,6 +28,11 @@ def update(f: Path, MooseLua: Path, Temp: Path): # Folder where script is located ScriptDir=Temp / "l10n/DEFAULT/" + # Check if that directory exists! GRP-600 - Respawn.miz was errorrous! + if not ScriptDir.is_dir(): + print(f"WARNING: {ScriptDir.name} does not exit!") + return + # Script file. ScriptFile=ScriptDir / Path(f.stem + ".lua")