Skip to content

Commit f3de234

Browse files
Fix: Use dynamic Python Scripts path detection for Windows
Co-Authored-By: [email protected] <[email protected]>
1 parent ba68095 commit f3de234

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/python-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
shell: pwsh
3434
run: |
3535
python -m pip install uv
36-
echo "$env:USERPROFILE/.local/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
36+
$pythonPath = (Get-Command python).Path
37+
$scriptsPath = Join-Path (Split-Path $pythonPath) "Scripts"
38+
echo $scriptsPath | Out-File -FilePath $env:GITHUB_PATH -Append
3739
- name: selfie-lib - install dependencies
3840
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
3941
run: |

0 commit comments

Comments
 (0)