# Make the script path in the script node relative

**URL:** <https://forum.universal-robots.com/t/make-the-script-path-in-the-script-node-relative/14491>\
**Category:** Polyscope\
**Created:** [May 24, 2021, 8:20am UTC](https://forum.universal-robots.com/t/make-the-script-path-in-the-script-node-relative/14491 "2021-05-24T08:20:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon3164729](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@anon3164729](https://forum.universal-robots.com/u/anon3164729)\
**Post date:** [May 24, 2021, 8:20am UTC](https://forum.universal-robots.com/t/make-the-script-path-in-the-script-node-relative/14491/1 "2021-05-24T08:20:53Z")

</div>

Usually I create for each project a `<project-folder>` for program and installation files, and a subfolder `<project-folder/scripts-folder>` with some scripts that I insert as nodes in the program. I have a problem when I copy the `<project-folder>` to another location, for example a different folder or when I transfer the project from ursim to a real robot.

When I open one of the script nodes in Polyscope I get this error popup:

```
Could not save file '<old absolute path>'

Ensure the selected save directory exists. If it is an external storage device, then verify it is attached.

```

Moreover when this happens, the missing scripts are recreated in the `<project-folder>`, but in this way I have duplicates that are not easy to detect in Polyscope (for each script I have one in the `<project-folder/scripts-folder>` and one in the `<project-folder>`).

Would it be possible to make the script file reference in the script node relative to the program location (e.g. `<scripts-folder/example.script>`) instead of absolute (e.g `</programs/.../scripts-folder/example.script>`)?

---

<div class="post-metadata">

**Author:** ![TomX-Berger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tomx-berger/32/5150_2.png) [@TomX-Berger](https://forum.universal-robots.com/u/TomX-Berger)\
**Post date:** [June 12, 2023, 1:14pm UTC](https://forum.universal-robots.com/t/make-the-script-path-in-the-script-node-relative/14491/2 "2023-06-12T13:14:03Z")

</div>

I have the exact same problem, has anybody found a solution for that?  
Is is possible to use relative paths for loading a script?

kr Thomas.
