File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/mkdocstrings_handlers/python Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -469,11 +469,9 @@ def normalize_extension_paths(self, extensions: Sequence) -> Sequence:
469469 pth = str (ext )
470470 options = None
471471
472- if pth .endswith (".py" ) or ".py:" in pth or "/" in pth or "\\ " in pth : # noqa: SIM102
473- # This is a sytem path. Normalize it.
474- if not os .path .isabs (pth ):
475- # Make path absolute relative to config file path.
476- pth = os .path .normpath (os .path .join (base_path , pth ))
472+ if pth .endswith (".py" ) or ".py:" in pth or "/" in pth or "\\ " in pth :
473+ # This is a system path. Normalize it, make it absolute relative to config file path.
474+ pth = os .path .abspath (os .path .join (base_path , pth ))
477475
478476 if options is not None :
479477 normalized .append ({pth : options })
You can’t perform that action at this time.
0 commit comments