mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 01:02:19 +00:00
Fix for x64 python on Windows. #479
This commit is contained in:
parent
b56015e90b
commit
210edfcad4
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@ import os
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import time
|
import time
|
||||||
import platform
|
import platform
|
||||||
|
import sys
|
||||||
|
|
||||||
from whichcraft import which
|
from whichcraft import which
|
||||||
from get_args import args
|
from get_args import args
|
||||||
|
@ -55,6 +56,9 @@ def get_binary(name):
|
||||||
if platform.system() == "Windows": # Windows
|
if platform.system() == "Windows": # Windows
|
||||||
exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "i386", name, "%s.exe" % name))
|
exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "i386", name, "%s.exe" % name))
|
||||||
if exe and not os.path.isfile(exe):
|
if exe and not os.path.isfile(exe):
|
||||||
|
if sys.maxsize > 2**32: # is 64bits Python
|
||||||
|
exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "x86_64", name, "%s.dll" % name))
|
||||||
|
else: # is 32bits Python
|
||||||
exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "i386", name, "%s.dll" % name))
|
exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "i386", name, "%s.dll" % name))
|
||||||
|
|
||||||
elif platform.system() == "Darwin": # MacOSX
|
elif platform.system() == "Darwin": # MacOSX
|
||||||
|
|
BIN
bin/Windows/x86_64/MediaInfo/mediainfo.dll
Normal file
BIN
bin/Windows/x86_64/MediaInfo/mediainfo.dll
Normal file
Binary file not shown.
Loading…
Reference in a new issue