mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2026-08-21 21:16:47 +00:00
Update UpdateMoose.py
- check for msrs config
This commit is contained in:
@@ -18,14 +18,14 @@ import filecmp
|
|||||||
def findMoose(path: Path):
|
def findMoose(path: Path):
|
||||||
# Loop over all lua files (recursively)
|
# Loop over all lua files (recursively)
|
||||||
for f in path.rglob("*.lua"):
|
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}")
|
print(f"Found Moose file as: {f}")
|
||||||
return f
|
return f
|
||||||
|
|
||||||
def copyScripts(path: Path, topath):
|
def copyScripts(path: Path, topath):
|
||||||
# Loop over all lua files (recursively)
|
# Loop over all lua files (recursively)
|
||||||
for f in path.rglob("*.lua"):
|
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}")
|
print(f"Found script: {f}")
|
||||||
copy(f, topath)
|
copy(f, topath)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user