HubSpot Connector 25.2
HubSpot Connector Help

# script_path

The `script_path` function returns the path and file name of the script that is running.

## Syntax

    script_path()

## Returns

(String, String) Returns the path of the folder that contains the script and the file name of the script, as separate strings.

## Example

    local script_directory, script_filename = script_path()

You can use this function to load scripts using their location relative to the current script. In the following example only the first return value from `script_path()` - the directory - is concatenated with `"more_scripts/another_script.lua"`.

    dofile(script_path().."more_scripts/another_script.lua")

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery HubSpot Connector 25.2

Topic Title: script_path