(self, *args, **kwargs)
| 199 | return self._files_config |
| 200 | |
| 201 | def create_process(self, *args, **kwargs): |
| 202 | if os.environ.get("BBOT_TESTING", "") == "True": |
| 203 | process = self.create_thread(*args, **kwargs) |
| 204 | else: |
| 205 | if SHARED_INTERPRETER_STATE.is_scan_process: |
| 206 | from .helpers.process import BBOTProcess |
| 207 | |
| 208 | process = BBOTProcess(*args, **kwargs) |
| 209 | else: |
| 210 | import multiprocessing |
| 211 | |
| 212 | raise BBOTError(f"Tried to start server from process {multiprocessing.current_process().name}") |
| 213 | process.daemon = True |
| 214 | return process |
| 215 | |
| 216 | def create_thread(self, *args, **kwargs): |
| 217 | from .helpers.process import BBOTThread |
no test coverage detected