view utils/pool @ 1037:83167a09a19d
Merged utils, pair_cores, blocks3d and geometrical-core from 9ae23 into 1.4.2
This makes these programs broken. Porting to allpy 1.4.0 is required.
author |
Boris Nagaev <bnagaev@gmail.com> |
date |
Mon, 19 Mar 2012 13:52:56 +0400 |
parents |
|
children |
|
line source
7 p = optparse.OptionParser()
8 p.add_option('-n', '--size', type=int, help='Pool size')
9 p.add_option('-c', '--cmd',
10 help='Command template. Insert {} for argument.'
11 ' Put the argument in double quotes if it may contain spaces.')
12 options, args = p.parse_args()
16 if spawned > options.size:
19 cmd = shlex.split(options.cmd.replace('{}', arg))
29 # vim: set ts=4 sts=4 et sw=4: