We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be161cb commit b18b77dCopy full SHA for b18b77d
1 file changed
.github/workflows/build.yaml
@@ -126,18 +126,14 @@ jobs:
126
with:
127
python-version: '3.13'
128
129
- - name: launcher wrapper
+ - name: Create py.exe
130
if: matrix.config.name == 'windows'
131
shell: powershell
132
run: |
133
- @'
134
- @echo off
135
- setlocal
136
- set "args=%*"
137
- set "args=%args:-3=%"
138
- python %args%
139
- '@ | Out-File -FilePath "$env:TEMP\py.cmd" -Encoding ASCII
140
- echo "$env:TEMP" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+ $pythonPath = (Get-Command python).Source
+ $pyPath = Join-Path (Split-Path $pythonPath) "py.exe"
+ Copy-Item $pythonPath $pyPath
+ echo (Split-Path $pythonPath) | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
141
142
- name: Update submodule
143
0 commit comments