Find the history file for the given profile name. This is overridden by the HistoryManager subclass, to use the shell's active profile. Parameters ---------- profile : str The name of a profile which has a history file.
(self, profile='default')
| 229 | self.init_db() |
| 230 | |
| 231 | def _get_hist_file_name(self, profile='default'): |
| 232 | """Find the history file for the given profile name. |
| 233 | |
| 234 | This is overridden by the HistoryManager subclass, to use the shell's |
| 235 | active profile. |
| 236 | |
| 237 | Parameters |
| 238 | ---------- |
| 239 | profile : str |
| 240 | The name of a profile which has a history file. |
| 241 | """ |
| 242 | return os.path.join(locate_profile(profile), 'history.sqlite') |
| 243 | |
| 244 | @catch_corrupt_db |
| 245 | def init_db(self): |
no test coverage detected