<div dir="ltr"><font size="2" color="black" face="Verdana,Arial,Helvetica"><font size="2" color="black" face="Verdana,Arial,Helvetica">Thanks .. but I want to find out if the system is "running on 64bit" even when the interpreter is a <br>
32-bit
build executable ("what python was built on").  platform.architecture()
and platform() in general seems to only be looking at the build
executable and what it was built for on windows (sorry, I don't have a
unix box available at the moment).  platform.architecture() returns
32bit when on a windows 64bit box.<br>
<br>
Another recommendation was:<br>
import sys<br>
hex(sys.maxint)<br>
x = sys.maxint<br>
n = 1<br>
while x:<br>
    n += 1<br>
    x >>= 1<br>
    <br>
print n<br>
<br>
Unfortunately this too appears to be looking at the build executable ... on Windows 64 it returns '32'.<br>
<br>
Thanks for the suggestions, hopefully we'll come up with a winner.<br>
<br>
Ken<br>
</font></font><br><br><div class="gmail_quote">On Tue, Jul 15, 2008 at 1:39 PM, Benjamin Kaplan <<a href="mailto:benjamin.kaplan@case.edu">benjamin.kaplan@case.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Tue, Jul 15, 2008 at 4:10 PM,  <<a href="mailto:kjhishere@gmail.com" target="_blank">kjhishere@gmail.com</a>> wrote:<br></div></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
I need to know if I'm running on 32bit or 64bit ... so far I haven't<br>
come up with how to get this info via python. sys.platform returns<br>
what python was built on ... but not what the current system is.<br>
<br>
I thought platform.uname() or just platform.processor() would have<br>
done it, but python returns an empty string on windows. Any ideas?<br>
<br>
Thanks, Ken<br>
</div></div><font color="#888888">--</font></blockquote><div> </div><div>platform.architecture() should have it.<br></div></div><br></div>
</blockquote></div><br></div>