@ -11,3 +11,5 @@ build/
.mypy_cache
.pytest_cache
__pycache__
.pyre
.pytype
@ -2,3 +2,4 @@
strict = true
disable_error_code = import-untyped,import-not-found
ignore_missing_imports = True
warn_unused_ignores = False
@ -86,6 +86,7 @@ class Noder:
quiet: bool = False) -> Optional[NodeAny]:
"""get the node by internal tree path"""
resolv = anytree.resolver.Resolver('name')
bpath = ''
try:
bpath = os.path.basename(path)
the_node = resolv.get(top, bpath)