We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
config_file_path
1 parent e07c882 commit 440cc45Copy full SHA for 440cc45
src/mkdocstrings_handlers/python/_internal/handler.py
@@ -434,7 +434,7 @@ def get_handler(
434
# We therefore increase the limit here, once, before Griffe is used to collect or render stuff.
435
sys.setrecursionlimit(max(sys.getrecursionlimit(), 2000))
436
437
- base_dir = Path(tool_config.config_file_path or "./mkdocs.yml").parent
+ base_dir = Path(getattr(tool_config, "config_file_path", None) or "./mkdocs.yml").parent
438
if "inventories" not in handler_config and "import" in handler_config:
439
warn("The 'import' key is renamed 'inventories' for the Python handler", FutureWarning, stacklevel=1)
440
handler_config["inventories"] = handler_config.pop("import", [])
0 commit comments