How To Detect Whether The Os Supports 16-bit Exes In Python?
This is essentially the same as asking how to detect that I am running under a 64-bit version of Windows. os.name gives 'nt' under both win7 64 and winXP 32 (my two available test
Solution 1:
Consider checking the PROCESSOR_ARCHITECTURE
key in os.environ
, and seeing if it's set to x86
or not.
Alternatively, you can use the platorm.architecture()
call, but point it at a different executable from the Python one (since you're required to run under 32bit Python).
Post a Comment for "How To Detect Whether The Os Supports 16-bit Exes In Python?"