Release 1.39.0
[boost.git] / Boost_1_39_0 / libs / iterator / doc / syscmd.py
blobe6a8dcaa4083e133b56793891a065265bf01026e
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)
5 import os
6 import sys
8 def 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)