mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 03:10:38 +00:00
[utils] get_exe_version: encode executable name (fixes #5647)
It failed in python 2.x when $PATH contains a directory with non-ascii characters.
This commit is contained in:
parent
7ef00afe9d
commit
541168039d
@ -1380,7 +1380,7 @@ def get_exe_version(exe, args=['--version'],
|
||||
or False if the executable is not present """
|
||||
try:
|
||||
out, _ = subprocess.Popen(
|
||||
[exe] + args,
|
||||
[encodeArgument(exe)] + args,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()
|
||||
except OSError:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user