MCPcopy Create free account
hub / github.com/ipython/traitlets / __init__

Method __init__

traitlets/config/loader.py:532–546  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected