in scancode/scanCode.py [0:0]
def read_scan_options(config):
"""Read the Options from the configuration file."""
options_dict = get_config_section_dict(config, SECTION_OPTIONS)
# vprint("options_dict: " + str(options_dict))
if options_dict is not None:
# Check for license scan slack length option
# Set global variable to value found in config.
if OPT_LICENSE_SLACK_LEN in options_dict:
global license_search_slack_len
license_search_slack_len = int(options_dict[OPT_LICENSE_SLACK_LEN])
else:
raise Exception(ERR_REQUIRED_SECTION % SECTION_OPTIONS)