Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit df5c2e3

Browse files
Test CI window
1 parent 507ec60 commit df5c2e3

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/python-package.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,17 @@ jobs:
113113

114114
- name: prepare python package windows
115115
if : runner.os == 'windows'
116-
shell: cmd
116+
shell: pwsh
117117
run: |
118118
conda activate ${{env.MODEL_NAME}}
119-
for /f "delims=" %%a in ('where python') do set "PYTHON_PATH=%%a"
120-
echo %PYTHON_PATH%
121-
for %%i in ("%PYTHON_PATH%") do set "PYTHON_FOLDER=%%~dpi"
122-
set "PYTHON_FOLDER=%PYTHON_FOLDER:~0,-1%"
123-
echo PYTHON_FOLDER=%PYTHON_FOLDER% >> %GITHUB_ENV%
124-
move "%PYTHON_FOLDER%\python*.*" "%PYTHON_FOLDER%\Scripts\"
119+
$pythonPath = where.exe python
120+
echo "Python path (where.exe): $pythonPath"
121+
122+
123+
$pythonFolder = Split-Path -Path "$pythonPath" -Parent
124+
echo "PYTHON_FOLDER=$pythonFolder" >> $env:GITHUB_ENV
125+
126+
Move-Item -Path "$pythonFolder\python*.*" -Destination "$pythonFolder\Scripts\" -Force
125127
126128
# - name: prepare python package unix
127129
# if : runner.os != 'windows'

0 commit comments

Comments
 (0)