Skip to content

Commit

Permalink
Fix locating Python on Windows when py.exe not found (dotnet#33163)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Mar 4, 2020
1 parent 1d9474d commit b5afe95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/python.targets
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<_PythonLocationScript>-c "import sys; sys.stdout.write(sys.executable)"</_PythonLocationScript>
</PropertyGroup>
<Exec Command="py -3 $(_PythonLocationScript) || python3 $(_PythonLocationScript) || python $(_PythonLocationScript)"
<Exec Command="py -3 $(_PythonLocationScript) 2&gt; nul || python3 $(_PythonLocationScript) 2&gt; nul || python $(_PythonLocationScript) 2&gt; nul"
StandardOutputImportance="Low"
EchoOff="true"
ConsoleToMsBuild="true">
Expand Down

0 comments on commit b5afe95

Please sign in to comment.