view utils/pool @ 831:afc8c5adb699
apply changes of rasmol_output to rasmol_homology
Changes 830:aee5173245b6 and 827:abb2aa401257 were applied
to rasmol_homology
author |
boris (kodomo) <bnagaev@gmail.com> |
date |
Sat, 16 Jul 2011 19:59:16 +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: