From: W. Trevor King Date: Wed, 20 Oct 2010 08:04:59 +0000 (-0400) Subject: Add --sawsim option to velocity_dependant_scan.main(). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de8582d1f5f50964e2412e19a108aa57a582d1ac;p=sawsim.git Add --sawsim option to velocity_dependant_scan.main(). --- diff --git a/pysawsim/velocity_dependant_scan.py b/pysawsim/velocity_dependant_scan.py index bb29272..59c9cf4 100644 --- a/pysawsim/velocity_dependant_scan.py +++ b/pysawsim/velocity_dependant_scan.py @@ -222,6 +222,10 @@ def main(): usage = "%prog [options] velocity_file" parser = optparse.OptionParser(usage) + parser.add_option("-s","--sawsim", dest="sawsim", + metavar="PATH", + help="Set sawsim binary (%default).", + default=sawsim_histogram.SAWSIM) parser.add_option("-f","--param-format", dest="param_format", metavar="FORMAT", help="Convert params to sawsim options (%default).", @@ -274,6 +278,7 @@ def main(): param_ranges = parse_param_ranges_string(options.param_range) velocity_file = args[0] + sawsim_histogram.SAWSIM = options.sawsim sawsim_histogram.CACHE_DIR = options.cache_dir manager = get_manager(options.manager)() try: