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 23, 2024
1 parent 6bc9940 commit 1459001
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 @@ -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]:
Expand Down

0 comments on commit 1459001

Please sign in to comment.