Documentation

Passing path variables with the Invoke Script

Overview

Passing variable for use in the runtime tool environment are typically necessary, in particular the "@tool" .

See the full invoke_app documentation here:  https://hubzero.org/documentation/1.3.1/tooldevs/invoke

@tool

The variable "@tool" can be passed into your tool via the invoke script.  This is important information for you tool to know so that the tool can access example input files and static data files that reside in the respective directories.  There are two way to pass the "@tool" location via the invoke script to the tool.

1) As an argument to the tool

        -A "@tool"

2) As an environment variable

        -e TOOL_REPO_PATH=@tool

 

Last modified:

  • Copyright © 2022 Hubzero
  • Powered by Hubzero®