return values of os.system() on win32

rbt rbt at athop1.ath.vt.edu
Fri Jan 13 11:41:56 EST 2006


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!



More information about the Python-list mailing list