[Pythonmac-SIG] Distinguishing between MacPython and Fink Python at runtime

hinsen at cnrs-orleans.fr hinsen at cnrs-orleans.fr
Fri Sep 3 12:45:49 CEST 2004


Is anyone aware of a reliable method for finding out at runtime if a 
program is running under MacPython or the Fink installation of Python? 
sys.platform is "darwin" in both cases.

The reason for wanting to distinguish between the two is the difference 
in the handling of modifier keys in the standard X11 Tk and the 
TclTkAqua that MacPython uses. The X11 version uses Ctrl and Alt (which 
is mapped to the command key), whereas TclTkAqua uses Ctrl and Command.

Konrad.



More information about the Pythonmac-SIG mailing list