1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-24 08:43:01 +00:00

Fix for x64 python on Windows. #479

This commit is contained in:
Louis Vézina 2019-07-11 08:31:52 -04:00
parent b56015e90b
commit 210edfcad4
2 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,7 @@ import os
import sqlite3
import time
import platform
import sys
from whichcraft import which
from get_args import args
@ -55,6 +56,9 @@ def get_binary(name):
if platform.system() == "Windows": # Windows
exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "i386", name, "%s.exe" % name))
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))
elif platform.system() == "Darwin": # MacOSX

Binary file not shown.