Skip to content

Commit

Permalink
use resource_path
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Nov 22, 2024
1 parent 6bc9940 commit dad8120
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/galaxy/tool_util/linters/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
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")
resource_path(package_or_requirement: Anchor, resource_name: str)
DATATYPES_CONF = os.path.join(galaxy.tool_util.linters, "datatypes_conf.xml.sample")


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

0 comments on commit dad8120

Please sign in to comment.