Skip to content

Commit 4d50553

Browse files
committed
Try setting PYTHONHOME
1 parent 9cdf2ae commit 4d50553

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,14 @@ jobs:
7474
if: ${{ matrix.os.category != 'windows' }}
7575
run: |
7676
echo PYTHONNET_PYDLL=$(find_libpython) >> $GITHUB_ENV
77+
echo PYTHONHOME=.venv >> $GITHUB_ENV
7778
7879
- name: Set Python DLL path and PYTHONHOME (Windows)
7980
if: ${{ matrix.os.category == 'windows' }}
8081
run: |
8182
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(find_libpython)"
83+
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONHOME=.venv"
84+
8285
8386
# - name: Embedding tests
8487
# run: dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/

0 commit comments

Comments
 (0)