From 1459001bd39d081102aa3b16ccc460d22dce6e12 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Fri, 22 Nov 2024 20:29:24 +0100 Subject: [PATCH] use resource_path --- lib/galaxy/tool_util/linters/datatypes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/tool_util/linters/datatypes.py b/lib/galaxy/tool_util/linters/datatypes.py index 534868ed01ec..8d5d19de8144 100644 --- a/lib/galaxy/tool_util/linters/datatypes.py +++ b/lib/galaxy/tool_util/linters/datatypes.py @@ -5,17 +5,19 @@ ) # from galaxy import config +from galaxy.tool_util import linters from galaxy.tool_util.lint import Linter from galaxy.util import ( listify, parse_xml, ) +from galaxy.util.resources import resource_path if TYPE_CHECKING: from galaxy.tool_util.lint import LintContext from galaxy.tool_util.parser import ToolSource -DATATYPES_CONF = os.path.join(os.path.dirname(__file__), "datatypes_conf.xml.sample") +DATATYPES_CONF = resource_path(linters, "datatypes_conf.xml.sample") def _parse_datatypes(datatype_conf_path: str) -> Set[str]: