Skip to content

Commit 3a4c9b0

Browse files
authored
[wasm] Unset PYTHONHOME (#67282)
Unset PYTHONHOME environment variable. We don't use emsdk.bat, which unsets PYTHONHOME and PYTHONPATH variables to not clash with emscripten python. So we should make sure the PYTHONHOME and PYTHONPATH are not pointing to other python locations. Together with previous PYTHONPATH [change](d9b8aef) it should fix #65859
1 parent 4bd27a6 commit 3a4c9b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mono/wasm/build/WasmApp.Native.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@
256256

257257
<EmscriptenEnvVars Include="EMSDK_PYTHON=$(EmscriptenPythonToolsPath)python.exe" Condition="'$(OS)' == 'Windows_NT'" />
258258
<EmscriptenEnvVars Include="PYTHONPATH=$(EmscriptenPythonToolsPath)" Condition="'$(OS)' == 'Windows_NT'" />
259+
<EmscriptenEnvVars Include="PYTHONHOME=" Condition="'$(OS)' == 'Windows_NT'" />
259260
<EmscriptenEnvVars Include="EM_CACHE=$(WasmCachePath)" Condition="'$(WasmCachePath)' != ''" />
260261
</ItemGroup>
261262

0 commit comments

Comments
 (0)