diff --git a/MBB.py b/MBB.py index c41bd14016e28310af806c6b4ff2d7459cb8b08e..705c4d6d602127d5e5529c912feed644beac44c2 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 14d3987651e15e0428b9ad2d5ce93685f9ac9e8a..b22c6125f9c427383d9f43c618a2a376bd27b828 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:")