diff --git a/lib/galaxy/tools/stock.py b/lib/galaxy/tools/stock.py index b10d76db9f44..1a86354f1370 100644 --- a/lib/galaxy/tools/stock.py +++ b/lib/galaxy/tools/stock.py @@ -1,18 +1,20 @@ """Reason about stock tools based on ToolSource abstractions.""" +from pathlib import Path + from lxml.etree import XMLSyntaxError # Set GALAXY_INCLUDES_ROOT from tool shed to point this at a Galaxy root # (once we are running the tool shed from packages not rooted with Galaxy). import galaxy.tools from galaxy.tool_util.parser import get_tool_source -from galaxy.util import galaxy_root_path +from galaxy.util import galaxy_directory from galaxy.util.resources import files def stock_tool_paths(): yield from _walk_directory_for_tools(files(galaxy.tools)) - yield from _walk_directory_for_tools(galaxy_root_path / "test" / "functional" / "tools") + yield from _walk_directory_for_tools(Path(galaxy_directory()) / "test" / "functional" / "tools") def stock_tool_sources(): @@ -23,7 +25,6 @@ def stock_tool_sources(): continue - def _walk_directory_for_tools(path): if path.is_file() and path.name.endswith(".xml"): yield path diff --git a/test/functional/tools/parameters/gx_select_multiple_optional.xml b/test/functional/tools/parameters/gx_select_multiple_optional.xml index 3025b72aed54..8e42fb8b14af 100644 --- a/test/functional/tools/parameters/gx_select_multiple_optional.xml +++ b/test/functional/tools/parameters/gx_select_multiple_optional.xml @@ -1,4 +1,4 @@ - + > '$output' ]]> @@ -16,10 +16,10 @@ echo '$parameter' >> '$output' - + - +