Re: Adapting code to multiple platforms
From: Peter Hansen (peter_at_engcorp.com)
Date: 03/12/05
- Next message: EP: "Re: About Databases..."
- Previous message: QMartin_v=2E_L=F6wis=22?=: "Re: i18n: looking for expertise"
- In reply to: Simon John: "Re: Adapting code to multiple platforms"
- Next in thread: Paul Watson: "Re: Adapting code to multiple platforms"
- Reply: Paul Watson: "Re: Adapting code to multiple platforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 12 Mar 2005 08:06:59 -0500
Simon John wrote:
> 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 ;-)
(Winky noted) Just in case anyone thinks that last is a
useful idea, keep in mind that win32api is not installed
(with the standard distribution) but must be installed
with a separate download of the pywin32 package by Mark
Hammond.
-Peter
- Next message: EP: "Re: About Databases..."
- Previous message: QMartin_v=2E_L=F6wis=22?=: "Re: i18n: looking for expertise"
- In reply to: Simon John: "Re: Adapting code to multiple platforms"
- Next in thread: Paul Watson: "Re: Adapting code to multiple platforms"
- Reply: Paul Watson: "Re: Adapting code to multiple platforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|