← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #172015]: is there any inbuilt function to find out the OS bit

 

Question #172015 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/172015

    Status: Open => Answered

RaiMan proposed the following answer:
There might be many possibilities using some command line utilities (Windows: have a look into the registry).
But this might be more or less complicated.

For Windows you could use the following easy trick:
import os
if os.environ.get("ProgramFiles(x86)", None):
    print "it is 64-Bit"
else:
    print "it is 32-Bit"

This checks, wether the environment variable "ProgramFiles(x86)" is set (which is only true for Windows 64-Bit systems (currently ;-).
Similar checks might be possible for other versions and systems

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.