Skip to content

Commit 24e185c

Browse files
use resource_path
1 parent 6bc9940 commit 24e185c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/galaxy/tool_util/linters/datatypes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
listify,
1111
parse_xml,
1212
)
13+
from galaxy.util.resources import resource_path
1314

1415
if TYPE_CHECKING:
1516
from galaxy.tool_util.lint import LintContext
1617
from galaxy.tool_util.parser import ToolSource
1718

18-
DATATYPES_CONF = os.path.join(os.path.dirname(__file__), "datatypes_conf.xml.sample")
19+
DATATYPES_CONF = resource_path(galaxy.tool_util.linters, "datatypes_conf.xml.sample")
1920

2021

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

0 commit comments

Comments
 (0)