Skip to content

Commit

Permalink
revert small changes to the dev_tools
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Sep 20, 2024
1 parent 2287569 commit eec8808
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dev_tools/docs/nxdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions dev_tools/utils/nxdl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))):
Expand Down

0 comments on commit eec8808

Please sign in to comment.