From de8582d1f5f50964e2412e19a108aa57a582d1ac Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 20 Oct 2010 04:04:59 -0400 Subject: [PATCH] Add --sawsim option to velocity_dependant_scan.main(). --- pysawsim/velocity_dependant_scan.py | 5 +++++ 1 file changed, 5 insertions(+) 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: -- 2.26.2