I have a number of binary libraries that are dependent on whether the
precompiled python distribution (eg. Enthought, ActiveState, etc) in which
they are installed are compiled with 32 or 64 bit. Is there any reliable way to
determine at run time whether a python distribution is 32 or 64 bit? I
On 09/08/16 17:55, Michael Selik wrote:
> Do you mind running the following commands from the python shell?
>
> py> import os
> py> os.getcwd()
> '/Users/mike'
> py> sorted(os.listdir('.'))
> ['.Trash', 'Applications', 'Desktop', ...]
>
> This will show us what location your python interpreter h
On Wed, Aug 10, 2016 at 4:27 AM, Garry Willgoose
wrote:
> I have a number of binary libraries that are dependent on whether the
> precompiled python
> distribution (eg. Enthought, ActiveState, etc) in which they are installed
> are compiled with
> 32 or 64 bit. Is there any reliable way to dete
On 10/08/16 11:41, eryk sun wrote:
>> 32 or 64 bit. Is there any reliable way to determine at run time whether a
>> python distribution
>> is 32 or 64 bit?
>
> Use platform.architecture()[0]. Currently the value will be either
> "32bit" or "64bit".
I assumed that was sys.platform?
But on my L
On 10/08/16 11:41, eryk sun wrote:
> Use platform.architecture()[0]. Currently the value will be either
> "32bit" or "64bit".
Its OK, I just discovered there is a platform module!
New one on me. That works :-)
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www