sb.SCRIPT_ROOT
sb.SCRIPT_ROOT
This is a variable that is filled in by the Storyboard Engine to contain the path to the application project's scripts directory. The sb.SCRIPT_ROOT variable provides a convenient way to reference the JavaScript-related resources in a location-independent, project relative, manner.
Example
// Print out the script root
print(sb.SCRIPT_ROOT);