Point the singleton database at the active network store.
(self)
| 467 | self._update_loot_paths(loot_data_dir, loot_credentials_dir) |
| 468 | scan_results_dir = context.get('scan_results_dir') or self._default_scan_results_dir |
| 469 | vulnerabilities_dir = context.get('vulnerabilities_dir') or self._default_vulnerabilities_dir |
| 470 | self._update_output_paths(scan_results_dir, vulnerabilities_dir) |
| 471 | if configure_db and hasattr(self, 'db'): |
| 472 | self._configure_database() |
| 473 | |
| 474 | def _configure_database(self): |
| 475 | """Point the singleton database at the active network store.""" |
| 476 | if get_db is None or self._pager_mode: |
| 477 | return |
| 478 | if not self.current_network_dir or not self.current_network_db_path: |
| 479 | return |
| 480 | db = get_db(currentdir=self.currentdir) |
no test coverage detected