5

I have a toolbox to share with my collegaues, it includes a model and imported python script. This script is also imported to the model in the end of session. When I share this toolbox to another PC, there is a problem in it: the model seems to be broken like here:

enter image description here

The solution is to edit model and manually set the path to a script, which is in the same toolbox or drag and drop it to a model. Is there any kind of tool or calculator that will run my script without any relationships to location of script?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Dec 8, 2016 at 13:12
0

1 Answer 1

6

Check 2 things:

  • Is the script imported in the script tool? Right-click it in the Catalog> Import Script.
  • Also, in the Model properties, make sure the 'Store relative pathnames (instead of absolute paths)' box is checked: right-click the model in the Catalog> Properties> General tab.
answered Dec 8, 2016 at 13:27
1
  • 1
    Script is imported already. As for relative paths, thank for advice! Commented Dec 8, 2016 at 13:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.