]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/iterator/doc/syscmd.py
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / iterator / doc / syscmd.py
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
5 import os
6 import sys
7
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)