1# Copyright David Abrahams 2004. Use, modification and distribution is 2# subject to the Boost Software License, Version 1.0. (See accompanying 3# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 5import os 6import sys 7 8def syscmd(s): 9 print 'executing: ', repr(s) 10 sys.stdout.flush() 11 err = os.system(s) 12 if err: 13 raise SystemError, 'command: %s returned %s' % ( 14 repr(s), err) 15