(self)
| 63 | logger.info("Create a file '{}' to open {} shell.".format(file, shell)) |
| 64 | |
| 65 | def _trigger(self): |
| 66 | if os.path.isfile(self._file): |
| 67 | logger.info("File {} exists, entering shell.".format(self._file)) |
| 68 | self._inject() |
| 69 | |
| 70 | def _inject(self): |
| 71 | trainer = self.trainer # noqa |