Skip to content

Commit 1459001

Browse files
use resource_path
1 parent 6bc9940 commit 1459001

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/galaxy/tool_util/linters/datatypes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@
55
)
66

77
# from galaxy import config
8+
from galaxy.tool_util import linters
89
from galaxy.tool_util.lint import Linter
910
from galaxy.util import (
1011
listify,
1112
parse_xml,
1213
)
14+
from galaxy.util.resources import resource_path
1315

1416
if TYPE_CHECKING:
1517
from galaxy.tool_util.lint import LintContext
1618
from galaxy.tool_util.parser import ToolSource
1719

18-
DATATYPES_CONF = os.path.join(os.path.dirname(__file__), "datatypes_conf.xml.sample")
20+
DATATYPES_CONF = resource_path(linters, "datatypes_conf.xml.sample")
1921

2022

2123
def _parse_datatypes(datatype_conf_path: str) -> Set[str]:

0 commit comments

Comments
 (0)