Skip to main content
Question

How to make the workspacerunner keep its absolute path when copied elsewhere?


karnil
Contributor
Forum|alt.badge.img+4

I have a set of workspaces on a network disk that are called from a master workspace with workspace runners. But when I copy the master workspace to a different location the paths to the modules become relative to the new master. And thus the link is broken. How can I retain the absolute path?

Sincerely,

Robin Nilsson

3 replies

xiaomengatsafe
Safer
Forum|alt.badge.img+3

Hi @karnil, I think this question is very similar to yours, and Dave's answer has a workaround that should apply to your scenario as well. In short, if you reset the Child workspace's path, after moving the parent workspace, Now the Child workspace path is no longer relative to the parent workspace, next time you move it, it should remain absolute.


karnil
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • July 23, 2018
xiaomengatsafe wrote:

Hi @karnil, I think this question is very similar to yours, and Dave's answer has a workaround that should apply to your scenario as well. In short, if you reset the Child workspace's path, after moving the parent workspace, Now the Child workspace path is no longer relative to the parent workspace, next time you move it, it should remain absolute.

That worked, thank you!

 

 

And now I also realized that since i have so many workspace runners, it is more effective to make a published parameter containing the path to the Child-workspaces folder and just before each WorkspaceRunner create an attribute with the path to the wanted ChildWorkspace. Like in the attached image.

 

workspacerunnerpath.jpg

 


karnil
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • July 23, 2018
karnil wrote:
That worked, thank you!

 

 

And now I also realized that since i have so many workspace runners, it is more effective to make a published parameter containing the path to the Child-workspaces folder and just before each WorkspaceRunner create an attribute with the path to the wanted ChildWorkspace. Like in the attached image.

 

workspacerunnerpath.jpg

 

Alas, my solution did not always work. When you set the path from an attribute in WorkspaceRunner you loose the ability to set the Workspace Parameters. So Xiaomengs solution is the one that works if you need that functionality.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings