[Pythonmac-SIG] Is there a run-time way to tell if you're running fink, macports, etc?

Ronald Oussoren ronaldoussoren at mac.com
Thu Apr 24 13:11:35 CEST 2008


On 24 Apr, 2008, at 0:21, Christopher Barker wrote:

> Hi all,
>
> sys.platform returns "darwin" for all of the various python builds  
> on OS-X. I"d like to know if I"m running a framework build, or fink,  
> or macports, or whatever build -- is there a runtime way to do that?
>
> Is looking at sys.executable the best(only?) way?

Looking at sys.prefix is better than sys.executable.

Ronald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20080424/8ab22321/attachment.bin>


More information about the Pythonmac-SIG mailing list