This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brian.curtin
Recipients brian.curtin, loewis, mhammond, pcb21
Date 2010-09-08.21:12:12
SpamBayes Score 5.3250386e-07
Marked as misclassified No
Message-id <1283980334.91.0.504266140283.issue2745@psf.upfronthosting.co.za>
In-reply-to
Content
os.environ["PROCESSOR_ARCHITEW6432"] will tell you the true underlying processor architecture when under WOW. Therefore, if you find that this variable exists, you are under WOW.

Example, on my 64-bit machine with a 32-bit compiled Python:

Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ["PROCESSOR_ARCHITECTURE"]
'x86'
>>> os.environ["PROCESSOR_ARCHITEW6432"]
'AMD64'
History
Date User Action Args
2010-09-08 21:12:15brian.curtinsetrecipients: + brian.curtin, loewis, mhammond, pcb21
2010-09-08 21:12:14brian.curtinsetmessageid: <1283980334.91.0.504266140283.issue2745@psf.upfronthosting.co.za>
2010-09-08 21:12:13brian.curtinlinkissue2745 messages
2010-09-08 21:12:12brian.curtincreate