def _gen_config(options_dict): """Generate ConfigParser object from dict. """ cfg = support.parse_config('') sec = "General" cfg.add_section(sec) for key, val in options_dict.items(): # Strip leading and trailing ws, b/c the pbsmrtpipe # misinterprets XML as a data-interchanges language. # (It is only mark-up, so ws is never meaningful.) # Also, we want only strings; hopefully, we can fix # the TC later to drop the type-info (e.g. integer). cfg.set(sec, key, str(val).strip()) return cfg
def _run_from_args(args): print("_run_from_args(%s)" %repr(args)) log.info( "pb-falcon started with configuration %s", args.config ) config = support.get_config(support.parse_config(args.config)) return 0
def _get_config(fn): """Return a dict. """ return support.get_config(support.parse_config(fn))
def _get_config(fn): """Return a dict. """ return support.get_config(support.parse_config(fn))