Skip to content

Commit

Permalink
Fix #256
Browse files Browse the repository at this point in the history
  • Loading branch information
george-palmsens authored Nov 13, 2023
1 parent cc5cb84 commit cd05d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pygments/popen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ def popen4(argv)
# Detect a suitable Python binary to use.
def find_python_binary
if Gem.win_platform?
return %w[py -3] if which('py')

return [%w[python3 python].find { |py| !which(py).nil? }]

return %w[py -3] if which('py')
end

# On non-Windows platforms, we simply rely on shebang
Expand Down

0 comments on commit cd05d31

Please sign in to comment.