Detecting platform architecture with Parallels and Win XP x64

Doug McCorkle mccdo at iastate.edu
Thu Jul 2 18:22:07 EDT 2009


Hello,

I am using Python 2.5.4 on Windows XP x64 with Parallels. When I try  
to use:

distutils.util.get_platform
sys.platform

I always get win32 but if I use:

platform.architecture()

with the amd64 installer I get 64bit for the first argument. Is there  
a way to detect win64 without having to use the python executable to  
see if the application is on a 64bit architecture? Thanks.

Doug





More information about the Python-list mailing list