From 18232424fad06ad41ec91e2d4459b762660e9f74 Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Mon, 20 Jan 2020 20:54:41 +0200 Subject: [PATCH] Bugfix, spec should not check kernel version using platform.architecture but rather the python interpreter version. This handles cases where we run 32b python on 64b machines --- monkey/infection_monkey/monkey.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/infection_monkey/monkey.spec b/monkey/infection_monkey/monkey.spec index 9c5fa9a18..3a376a73b 100644 --- a/monkey/infection_monkey/monkey.spec +++ b/monkey/infection_monkey/monkey.spec @@ -1,5 +1,6 @@ # -*- mode: python -*- import os +import sys import platform @@ -48,7 +49,7 @@ def is_windows(): def is_32_bit(): - return platform.architecture()[0] == "32bit" + return sys.maxsize <= 2**32 def get_bin_folder():