[KODI 18 Windows] How to detect if running 32 or 64 bit build? - SOLVED
#1
I have an add-on that needs to know if the KODI version running is the 32bit or 64bit version.
The system it's running on is 64bit.

Code:
print(xbmc.getInfoLabel('System.KernelVersion'))
print(xbmc.getInfoLabel('System.BuildVersion'))
print(xbmc.getInfoLabel('System.BuildDate'))
print(xbmc.getInfoLabel('System.FriendlyName'))
print(platform.system())
print(platform.machine())

Gives me the following same output on 32bit or 64bit build....

Code:
09:56:19.188 T:7728   DEBUG: 18.0-ALPHA1 Git:20170808-b6318a5
09:56:19.188 T:7728   DEBUG: Aug  8 2017
09:56:19.188 T:7728   DEBUG: Kodi (MATT-PC)
09:56:19.194 T:7728   DEBUG: Windows
09:56:19.194 T:7728   DEBUG: AMD64

The top of the KODI logs has the info I need but I just can't find an info label that exposes this?

Code:
09:52:36.957 T:5636  NOTICE: Starting Kodi (18.0-ALPHA1 Git:20170808-b6318a5). Platform: Windows NT x86 64-bit  <-----
09:52:36.957 T:5636  NOTICE: Using Release Kodi x64 build <-----
09:52:36.957 T:5636  NOTICE: Kodi compiled Aug  8 2017 by MSVC 190024215 for Windows NT x86 64-bit version 10.0 (0x0A000000)
09:52:36.957 T:5636  NOTICE: Running on Windows 10, kernel: Windows NT x86 64-bit version 10.0

Code:
09:42:46.532 T:3268  NOTICE: Starting Kodi (18.0-ALPHA1 Git:20170808-b6318a5472-di). Platform: Windows NT x86 32-bit  <-----
09:42:46.532 T:3268  NOTICE: Using Release Kodi x32 build <-----
09:42:46.533 T:3268  NOTICE: Kodi compiled Aug  8 2017 by MSVC 190024215 for Windows NT x86 32-bit version 10.0 (0x0A000000)
09:42:46.533 T:3268  NOTICE: Running on Windows 10, kernel: Windows NT x86 64-bit version 10.0

Any ideas?

SOLUTION:

Code:
arch = platform.architecture()[0]

will return 32bit or 64bit Smile
Reply
#2
Thanks for that Matt, have been looking for the same thing!
Reply
#3
Hi Matt
Where/how do you enter that command?
Reply

Logout Mark Read Team Forum Stats Members Help
[KODI 18 Windows] How to detect if running 32 or 64 bit build? - SOLVED0