Build a config loader for a filename and path. Parameters ---------- filename : str The file name of the config file. path : str, list, tuple The path to search for the config file on, or a sequence of paths to try in order.
(self, filename: str, path: str | None = None, **kw: t.Any)
| 530 | """ |
| 531 | |
| 532 | def __init__(self, filename: str, path: str | None = None, **kw: t.Any) -> None: |
| 533 | """Build a config loader for a filename and path. |
| 534 | |
| 535 | Parameters |
| 536 | ---------- |
| 537 | filename : str |
| 538 | The file name of the config file. |
| 539 | path : str, list, tuple |
| 540 | The path to search for the config file on, or a sequence of |
| 541 | paths to try in order. |
| 542 | """ |
| 543 | super().__init__(**kw) |
| 544 | self.filename = filename |
| 545 | self.path = path |
| 546 | self.full_filename = "" |
| 547 | |
| 548 | def _find_file(self) -> None: |
| 549 | """Try to find the file by searching the paths.""" |