Update UpdateMoose.py

This commit is contained in:
Frank
2022-10-11 21:28:33 +02:00
parent 33f4e46a8d
commit 192d4710a2

View File

@@ -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")