Skip to content

Commit 2d6c1a8

Browse files
Use sysconfig to detect tests_path on Windows
1 parent ea9f5fd commit 2d6c1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/conda-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ jobs:
418418
419419
- name: Set tests_path for installed package
420420
run: |
421-
FOR /F "delims=" %%i IN ('python -c "import site, os; print(os.path.join(site.getsitepackages()[0], 'dpnp', 'tests'))"') DO SET tests_path=%%i
421+
FOR /F "delims=" %%i IN ('python -c "import sysconfig, os; print(os.path.join(sysconfig.get_paths()[\"purelib\"], 'dpnp', 'tests'))"') DO SET tests_path=%%i
422422
echo tests_path=%tests_path%>>%GITHUB_ENV%
423423
424424
- name: Check site-packages

0 commit comments

Comments
 (0)