Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/iterator/doc/syscmd.py @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 427 bytes
Line 
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)
Note: See TracBrowser for help on using the repository browser.