diff --git a/dev_tools/docs/nxdl.py b/dev_tools/docs/nxdl.py index 109ec5d872..672dcb3624 100755 --- a/dev_tools/docs/nxdl.py +++ b/dev_tools/docs/nxdl.py @@ -12,7 +12,7 @@ from ..globals.errors import NXDLParseError from ..globals.nxdl import NXDL_NAMESPACE from ..globals.urls import REPO_URL -from ..utils import nxdl_utils as pynxtools_nxlib +from ..utils.nxdl_utils import get_inherited_nodes from ..utils.github import get_file_contributors_via_api from ..utils.types import PathLike from .anchor_list import AnchorRegistry @@ -703,7 +703,7 @@ def get_first_parent_ref(self, path, tag): path = path[path.find("/", 1) :] try: - parents = pynxtools_nxlib.get_inherited_nodes(path, nx_name)[2] + parents = get_inherited_nodes(path, nx_name)[2] except FileNotFoundError: return "" if len(parents) > 1: diff --git a/dev_tools/utils/nxdl_utils.py b/dev_tools/utils/nxdl_utils.py index 169d0be039..7cabf34fd3 100644 --- a/dev_tools/utils/nxdl_utils.py +++ b/dev_tools/utils/nxdl_utils.py @@ -78,9 +78,9 @@ def get_nexus_definitions_path(): def get_app_defs_names(): """Returns all the AppDef names without their extension: .nxdl.xml""" - app_def_path_glob = nexus_def_path / "applications" / "*.nxdl*" + app_def_path_glob = nexus_def_path / "applications" / "*.nxdl.xml" - contrib_def_path_glob = Path(nexus_def_path) / "contributed_definitions" / "*.nxdl*" + contrib_def_path_glob = Path(nexus_def_path) / "contributed_definitions" / "*.nxdl.xml" files = sorted(glob(str(app_def_path_glob))) for nexus_file in sorted(glob(str(contrib_def_path_glob))):