Adapting code to multiple platforms

Simon John simoninusa2001 at yahoo.co.uk
Fri Mar 11 23:59:34 EST 2005


If you're using a GUI, then that may help you decode the platform too -
for example wxPython has wx.Platform, there's also platform.platform()
, sys.platform and os.name

You could try import win32api and checking for an exception ;-)




More information about the Python-list mailing list