'win32'
if sys.platform=='win32'
...
···
On Wed, 5 Apr 2006 16:34:06 +0530, "Shine Anne" <m2ids2005@gmail.com> wrote:
Hi ,
Is there any method by which we can find the OS of the machine..
To be more clear... i need to know whether the machine has linux or windows.
after this check only i need to execute the rest of the code. does anyone
have any idea to find which OS is running in our machine?
import sys
sys.platform
--
Franz Steinhaeusler