From 5123076ccc6f9bfc9a2a57333743d9064d73a99c Mon Sep 17 00:00:00 2001
From: Simon Schwitanski <schwitanski@itc.rwth-aachen.de>
Date: Tue, 6 Aug 2024 10:16:08 +0200
Subject: [PATCH] Change outdated MBI path checks to MBB paths

---
 MBB.py              | 4 ++--
 scripts/MBIutils.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/MBB.py b/MBB.py
index c41bd140..705c4d6d 100755
--- a/MBB.py
+++ b/MBB.py
@@ -88,8 +88,8 @@ todo = []
 
 def extract_all_todo(batch):
     """Extract the TODOs from all existing files, applying the batching request"""
-    if os.path.exists(f"/MBI/scripts/{args.gencodes}/"):  # Docker run
-        filenames = glob.glob(f"/MBI/scripts/{args.gencodes}/**/*.c")
+    if os.path.exists(f"/MBB/scripts/{args.gencodes}/"):  # Docker run
+        filenames = glob.glob(f"/MBB/scripts/{args.gencodes}/**/*.c")
     elif os.path.exists(f"{args.gencodes}/"):  # Gitlab-ci run
         filenames = glob.glob(f"{os.getcwd()}/{args.gencodes}/*.c")  # our code expects absolute paths
     elif os.path.exists(f"../../{args.gencodes}/"):  # Local runs
diff --git a/scripts/MBIutils.py b/scripts/MBIutils.py
index 14d39876..b22c6125 100644
--- a/scripts/MBIutils.py
+++ b/scripts/MBIutils.py
@@ -19,7 +19,7 @@ from scripts.Infrastructure.Variables import ERROR_CLASSES
 class AbstractTool:
     def ensure_image(self, params="", dockerparams=""):
         """Verify that this is executed from the right docker image, and complain if not."""
-        if os.path.exists("/MBI") or os.path.exists("trust_the_installation"):
+        if os.path.exists("/MBB") or os.path.exists("trust_the_installation"):
             print("This seems to be a MBB docker image. Good.")
         else:
             print("Please run this script in a MBB docker image. Run these commands:")
-- 
GitLab