Name

sourceGlobal — Source a Beanshell script into the global context.

Syntax

void sourceGlobal ( String filename ) 

The command has the following arguments:

filename

The name of the script file to read in.

Description

Source a Beanshell script into the global context. This command can be used within other scripts in order to get scripts evaluated in the global context, and thus make new function definitions available at the Patchworks console prompt. If scripts are sourced in using the regular source command, their content will only be known within the context of the script that is loading them.

Use this command if you are sourcing in script files from within the Patchworks_Init() method of the PIN file and you want the resulting command defintions to be available at the Patchworks console prompt.