diff --git a/.github/workflows/build-windows-executable-app.yaml b/.github/workflows/build-windows-executable-app.yaml index 90fc544..c757504 100644 --- a/.github/workflows/build-windows-executable-app.yaml +++ b/.github/workflows/build-windows-executable-app.yaml @@ -248,7 +248,7 @@ jobs: - name: Clean up unnecessary Python files shell: pwsh run: | - $sitePkgs = "py/Lib/site-packages" + $sitePkgs = "python-${{ env.PYTHON_VERSION }}/Lib/site-packages" # Remove __pycache__ directories Get-ChildItem -Path $sitePkgs -Recurse -Directory -Filter "__pycache__" | Remove-Item -Recurse -Force