File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -126,18 +126,14 @@ jobs:
126126 with :
127127 python-version : ' 3.13'
128128
129- - name : launcher wrapper
129+ - name : Create py.exe
130130 if : matrix.config.name == 'windows'
131131 shell : powershell
132132 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
133+ $pythonPath = (Get-Command python).Source
134+ $pyPath = Join-Path (Split-Path $pythonPath) "py.exe"
135+ Copy-Item $pythonPath $pyPath
136+ echo (Split-Path $pythonPath) | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
141137
142138 - name : Update submodule
143139 run : |
You can’t perform that action at this time.
0 commit comments