Skip to content

Commit ac24c1e

Browse files
fix bug
1 parent b7e55b8 commit ac24c1e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/mac_test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ jobs:
3434
3535
- name: Run Demo
3636
run: |
37-
# This finds the Demo.py wherever it is and runs it
38-
# (Fixes the mousearm/mousearm/Demo path confusion)
39-
DEMO_PATH=$(find . -name "Demo.py" | head -n 1)
40-
cd $(dirname "$DEMO_PATH")
37+
# 1. Find the directory containing Demo.py
38+
DEMO_DIR=$(find . -type d -name "Demo" | head -n 1)
39+
echo "Found Demo directory at: $DEMO_DIR"
40+
41+
# 2. Change into that directory
42+
cd "$DEMO_DIR"
43+
44+
# 3. Run the script now that we are in the correct folder
4145
python Demo.py

0 commit comments

Comments
 (0)