Options Module

Copyright (C) 2007-2017 Jonas Diemer, Philip Axer
TU Braunschweig, Germany
All rights reserved.
See LICENSE file for copyright and license details.
Authors:
  • Jonas Diemer
  • Philip Axer

Description

This module contains methods to initalize the pycpa environment. It will setup an argument parser and set up default parameters.

pycpa.options.get_opt(option)[source]

Returns the option specified by the parameter. If called for the first time, the parsing is done.

pycpa.options.init_pycpa(implicit=False)[source]

Initialize pyCPA. This function parses the options and prints them for reference. It is called once automatically from get_opt() or set_opt() during the beginning of the analysis. It can also be called directly to control when initialization happens in order to modify options afterwards.

pycpa.options.pprintTable(out, table, column_sperator='', header_separator=':')[source]

Prints out a table of data, padded for alignment @param out: Output stream (file-like object) @param table: The table to print. A list of lists. Each row must have the same number of columns.

pycpa.options.set_opt(option, value)[source]

Sets the option specified by the parameter to value. If called for the first time, the parsing is done.