Skip to content
Snippets Groups Projects
Verified Commit 5123076c authored by Simon Schwitanski's avatar Simon Schwitanski :slight_smile:
Browse files

Change outdated MBI path checks to MBB paths

parent 520c696b
Branches
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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:")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment