Skip to content

Commit 4558016

Browse files
committed
Fix CI failure: remove unused dependencies from semantic_review.py and improve health check pathing
1 parent 3fbf074 commit 4558016

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

scripts/check_health.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,13 @@ def check_ui_collisions():
9393
all_pass = True
9494

9595
# Import semantic_review logic
96-
sys.path.append("scripts")
96+
scripts_dir = os.path.abspath("scripts")
97+
if scripts_dir not in sys.path:
98+
sys.path.append(scripts_dir)
9799
try:
98100
from semantic_review import detect_collisions
99-
except ImportError:
100-
print("[ERROR] semantic_review.py not found.")
101+
except ImportError as e:
102+
print(f"[ERROR] Could not import semantic_review: {e}")
101103
return False
102104

103105
for meta in metadata_files:

scripts/semantic_review.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import os
22
import json
3-
import numpy as np
4-
from PIL import Image
53

64
def detect_collisions(buttons):
75
collisions = []

0 commit comments

Comments
 (0)