mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 02:45:12 +00:00
[update] Workaround #5632
This commit is contained in:
parent
a0e526ed4d
commit
2fb0f85868
1 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,6 @@
|
||||||
Popen,
|
Popen,
|
||||||
cached_method,
|
cached_method,
|
||||||
deprecation_warning,
|
deprecation_warning,
|
||||||
remove_end,
|
|
||||||
shell_quote,
|
shell_quote,
|
||||||
system_identifier,
|
system_identifier,
|
||||||
traverse_obj,
|
traverse_obj,
|
||||||
|
@ -43,7 +42,8 @@ def _get_variant_and_executable_path():
|
||||||
# Ref: https://en.wikipedia.org/wiki/Uname#Examples
|
# Ref: https://en.wikipedia.org/wiki/Uname#Examples
|
||||||
if machine[1:] in ('x86', 'x86_64', 'amd64', 'i386', 'i686'):
|
if machine[1:] in ('x86', 'x86_64', 'amd64', 'i386', 'i686'):
|
||||||
machine = '_x86' if platform.architecture()[0][:2] == '32' else ''
|
machine = '_x86' if platform.architecture()[0][:2] == '32' else ''
|
||||||
return f'{remove_end(sys.platform, "32")}{machine}_exe', path
|
# NB: https://github.com/yt-dlp/yt-dlp/issues/5632
|
||||||
|
return f'{sys.platform}{machine}_exe', path
|
||||||
|
|
||||||
path = os.path.dirname(__file__)
|
path = os.path.dirname(__file__)
|
||||||
if isinstance(__loader__, zipimporter):
|
if isinstance(__loader__, zipimporter):
|
||||||
|
@ -74,8 +74,8 @@ def current_git_head():
|
||||||
_FILE_SUFFIXES = {
|
_FILE_SUFFIXES = {
|
||||||
'zip': '',
|
'zip': '',
|
||||||
'py2exe': '_min.exe',
|
'py2exe': '_min.exe',
|
||||||
'win_exe': '.exe',
|
'win32_exe': '.exe',
|
||||||
'win_x86_exe': '_x86.exe',
|
'win32_x86_exe': '_x86.exe',
|
||||||
'darwin_exe': '_macos',
|
'darwin_exe': '_macos',
|
||||||
'darwin_legacy_exe': '_macos_legacy',
|
'darwin_legacy_exe': '_macos_legacy',
|
||||||
'linux_exe': '_linux',
|
'linux_exe': '_linux',
|
||||||
|
|
Loading…
Reference in a new issue