comparison python/multiproc.py @ 601:7f189613a289

STUB: python/multiproc.py
author Jeff Hammel <k0scist@gmail.com>
date Thu, 30 Jan 2014 14:09:23 -0800
parents a77f7022cc06
children 330e3435a7d7
comparison
equal deleted inserted replaced
600:a77f7022cc06 601:7f189613a289
9 import subprocess 9 import subprocess
10 import sys 10 import sys
11 import time 11 import time
12 import tempfile 12 import tempfile
13 13
14 class 14 class Process(subprocess.Popen):
15 """why would you name a subprocess object Popen?"""
16
17 def __init__(self, *args, **kwargs):
18 self.output = tempfile.SpooledTemporaryFile()
19 subprocess.Popen.__init__(self, *args, **kwargs)
15 20
16 def main(args=sys.argv[1:]): 21 def main(args=sys.argv[1:]):
17 """CLI""" 22 """CLI"""
18 23
19 # available programs 24 # available programs