rbt wrote:
> Is it safe to say that any value returned by os.system() other than 0 is 
> an error?
> 
> if os.system('winver') != 0:
>     print "Winver failed!"
> else:
>     print "Winver Worked."
> 
> Thanks!

What are you really seeking to do?  Are you wanting to detect if your 
code is running on a Windows machine?  Are you wanting to know the 
version number of Windows?  Why not use popen2() and see the output?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to