Hi,
is there a method in python that tell me in which CPU architecture is running? for example, in win if it's running on 32 or 64 bit, in mac, if it's running on PPC or Intel....
thx
···
--
/\/\ariano Di Felice
Java PHP Python Ruby programmer
with MySQL, PostgreSql, SQLite and Oracle support
Linux Platform Developer
http://www.marianodifelice.it
mariano.difelice@gmail.com
Tel. 0735 703735
Cell +39 339 6407211
Thx Rickey,
for python2.3 your solution is good.
For python >= 2.4 there is a "platform" module which contains more informations about arch!
thx bye
Rickey, Kyle W ha scritto:
···
How about os.sys.version ?
On my 32bit WinXP machine I get this:
os.sys.version
'2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]'
-Kyle Rickey
-----Original Message-----
From: wxpython-users-bounces@lists.wxwidgets.org
[mailto:wxpython-users-bounces@lists.wxwidgets.org] On Behalf Of Mariano
Di Felice
Sent: Monday, May 05, 2008 1:21 PM
To: wxpython-users@lists.wxwidgets.org
Subject: [wxpython-users] CPU Architecture
Hi,
is there a method in python that tell me in which CPU architecture is running? for example, in win if it's running on 32 or 64 bit, in mac,
if it's running on PPC or Intel....
thx
--
/\/\ariano Di Felice
Java PHP Python Ruby programmer
with MySQL, PostgreSql, SQLite and Oracle support
Linux Platform Developer
http://www.marianodifelice.it
mariano.difelice@gmail.com
Tel. 0735 703735
Cell +39 339 6407211