From 6085efc96649ec54662f50e9a67342d2c118caf2 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 24 Dec 2023 03:36:49 +0100 Subject: [PATCH] Update UpdateMoose.py - check for msrs config --- .scripts/UpdateMoose.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scripts/UpdateMoose.py b/.scripts/UpdateMoose.py index f4c2703185..f8bfde8da6 100644 --- a/.scripts/UpdateMoose.py +++ b/.scripts/UpdateMoose.py @@ -18,14 +18,14 @@ import filecmp def findMoose(path: Path): # Loop over all lua files (recursively) for f in path.rglob("*.lua"): - if f.name.lower().startswith("moose"): + if f.name.lower().startswith("moose") and not f.name.lower().endswith("msrs"): print(f"Found Moose file as: {f}") return f def copyScripts(path: Path, topath): # Loop over all lua files (recursively) for f in path.rglob("*.lua"): - if not f.name.lower().startswith("moose"): + if not f.name.lower().startswith("moose") and not f.name.lower().endswith("msrs"): print(f"Found script: {f}") copy(f, topath)