Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 22 lines (17 sloc) 0.564 kb
f17a3042 »
2009-08-23 add buildbot scripts
1 """Module to help _buildbot_*.py scripts."""
2
a32eb4e6 »
2011-03-14 More miscellaneous print_function updates.
3 from __future__ import print_function
f17a3042 »
2009-08-23 add buildbot scripts
4 import shutil, os, sys
5 from subprocess import Popen, PIPE, STDOUT
6
7 def check_call(args,**kwargs):
8 # print
9 # print args
10 # print '**kwargs'
11 # print kwargs
12 # print
13
14 # This use of Popen is copied from matplotlib.texmanager (Use of
15 # close_fds seems a bit mysterious.)
16
2de61bc5 »
2009-08-23 Remove trailing whitespace.
17 p = Popen(args, shell=True,
f17a3042 »
2009-08-23 add buildbot scripts
18 close_fds=(sys.platform!='win32'),**kwargs)
19 p.wait()
20 if p.returncode!=0:
21 raise RuntimeError('returncode is %s'%p.returncode)
Something went wrong with that request. Please try again.