misc/build_helpers/show-tool-versions.py: avoid error message when 'as -version' does not create a.out.

This commit is contained in:
david-sarah 2010-08-03 02:48:12 -07:00
parent a7c474a098
commit cd7fb133b7

View File

@ -62,7 +62,8 @@ def print_as_ver():
stderr=subprocess.PIPE).communicate()[1]
print
print 'as: ' + res.replace("\n", " ")
os.remove('a.out')
if os.path.exists('a.out'):
os.remove('a.out')
except EnvironmentError, le:
sys.stderr.write("Got exception invoking '%s': %s\n" % ('as', le,))
pass