Skip to content

Commit d75e5fd

Browse files
mseng10thewtex
authored andcommitted
BUG: Incorrect path for removing sphinx warning
This will find the exact path of Python's library when we can suppress the duplicate declaration warning
1 parent 74a4c19 commit d75e5fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ jobs:
287287
288288
- name: Remove Duplicate Declaration Warnings
289289
run: |
290-
sed -i "6559d" /opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/sphinx/domains/cpp.py
290+
SITE_PACKAGES_DIR=$(python3 "-c" "from distutils import sysconfig; print(sysconfig.get_python_lib())")
291+
sed -i "6559d" ${SITE_PACKAGES_DIR}/sphinx/domains/cpp.py
291292
292293
- name: Download ITK
293294
run: |

0 commit comments

Comments
 (0)