David Lees wrote:
[EMAIL PROTECTED] wrote:
I need to know if I'm running on 32bit or 64bit ... so far I haven't
come up with how to get this info via python. sys.platform returns
what python was built on ... but not what the current system is.

I thought platform.uname() or just platform.processor() would have
done it, but python returns an empty string on windows. Any ideas?

Thanks, Ken

On my windows box this works:

 >>> platform.architecture()
('32bit', 'WindowsPE')


David

On Fedora Core 5 64-bit here is what I see:

>>> import platform
>>> platform.architecture()
('64bit', 'ELF')

-Larry
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to