---
title: "setScriptPaths"
canonical: "https://help.vicon.com/space/ShogunPost121/1253738188/setScriptPaths"
format: markdown
---
# Description

Sets the list of script directories where Shogun Post will look for scripts and pipelines that can be executed.

The script directories are reparsed immediately. This means that if your script calls another script that isn't under any of the new directories, your script will fail after executing this command.

## Functional area

System

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `setScriptPaths ScriptPaths` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `ScriptPaths` | string array | yes | String array of the new script directories. |

### Flags

None

## Return value

void

> Macro (scroll-pagebreak)

## Examples

```plaintext
// Set the script directories
string $scriptPaths\[4\];
  $scriptPaths[0] = "C:/Program Files/Vicon/ShogunPost1.8/MyLiveScripts/";
  $scriptPaths[1] = "C:/Program Files/Vicon/ShogunPost1.8/MyLabeling/";
  $scriptPaths[2] = "C:/Program Files/Vicon/ShogunPost1.8/MyEditingScripts/";
  $scriptPaths[3] = "C:/Program Files/Vicon/ShogunPost1.8/MySolvingScripts/";
setScriptPaths $scriptPaths;
```

# Additional information

## Related commands

- [addScript](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739298)
- [addScriptPath](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738562)
- [clearScriptPaths](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737120)
- [deleteScriptPath](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737382)
- [getScriptPaths](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738493)
- [scriptExists](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738212)