[Erp5-report] r9638 - /erp5/trunk/utils/erp5mechanize/smartRun.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 4 13:50:57 CEST 2006
Author: vincent
Date: Mon Sep 4 13:50:54 2006
New Revision: 9638
URL: http://svn.erp5.org?rev=9638&view=rev
Log:
Use the right way to read system() return value.
Modified:
erp5/trunk/utils/erp5mechanize/smartRun.py
Modified: erp5/trunk/utils/erp5mechanize/smartRun.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5mechanize/smartRun.py?rev=9638&r1=9637&r2=9638&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/smartRun.py (original)
+++ erp5/trunk/utils/erp5mechanize/smartRun.py Mon Sep 4 13:50:54 2006
@@ -33,8 +33,8 @@
def execute(command):
print command
- result = os.system(command)
- if result == 32512:
+ result = os.WEXITSTATUS(os.system(command))
+ if result == 127:
raise 'NotFound'
return result
More information about the Erp5-report
mailing list