def initialisation_phase_1(root_dir, owtf_pid): """First phase of the initialization. :param str root_dir: Absolute path to the OWTF root. :param int owtf_pid: PID for the OWTF process. """ Config(root_dir, owtf_pid) ErrorHandler() DB() try: OWTFSessionDB() except: raise DatabaseNotRunningException() WorklistManager() ConfigDB() CommandRegister() TargetDB() ResourceDB() ErrorDB() MappingDB() PluginDB() Zest() URLManager() TransactionManager()
def __call__(self): self._create_core_mock() config = Config(RootDir=ROOT_DIR, CoreObj=self.core_mock) config.Plugin = self._get_plugin_config_instance() return config