def read_config(self):
self.threads = self.cfg["<STR_LIT>"] or str(int(multiprocessing.cpu_count() / <NUM_LIT:2>) + <NUM_LIT:1>)<EOL>self.phantom_modules_path = self.cfg["<STR_LIT>"]<EOL>self.additional_libs = '<STR_LIT:U+0020>'.join(self.cfg["<STR_LIT>"])<EOL>self.answ_log_level = self.cfg["<STR_LIT>"]<EOL>if self.answ_log_level.lower() in ['<STR_LIT:0>', '<STR_LIT:false>']:<EOL><INDENT>self.answ_log_level = '<STR_LIT:none>'<EOL><DEDENT>elif self.answ_log_level.lower() in ['<STR_LIT:1>', '<STR_LIT:true>']:<EOL><INDENT>self.answ_log_level = '<STR_LIT:all>'<EOL><DEDENT>self.timeout = parse_duration(self.cfg["<STR_LIT>"])<EOL>if self.timeout > <NUM_LIT>:<EOL><INDENT>logger.warning(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>self.answ_log = self.core.mkstemp("<STR_LIT>", "<STR_LIT>")<EOL>self.core.add_artifact_file(self.answ_log)<EOL>self.core.add_artifact_file(self.phout_file)<EOL>self.core.add_artifact_file(self.stat_log)<EOL>self.phantom_log = self.core.mkstemp("<STR_LIT>", "<STR_LIT>")<EOL>self.core.add_artifact_file(self.phantom_log)<EOL>main_stream = StreamConfig(<EOL>self.core,<EOL>len(self.streams), self.phout_file, self.answ_log,<EOL>self.answ_log_level, self.timeout, self.cfg, True)<EOL>self.streams.append(main_stream)<EOL>for section in self.multi():<EOL><INDENT>self.streams.append(<EOL>StreamConfig(<EOL>self.core,<EOL>len(self.streams), self.phout_file, self.answ_log,<EOL>self.answ_log_level, self.timeout, section))<EOL><DEDENT>for stream in self.streams:<EOL><INDENT>stream.read_config()<EOL><DEDENT>if any(stream.ssl for stream in self.streams):<EOL><INDENT>self.additional_libs += '<STR_LIT>'<EOL><DEDENT>
Read phantom tool specific options