Page 1 of 1

Is there any kind of dependency walker?

Posted: Sun Jan 17, 2021 11:30 pm
by strider2000
As I think about sharing scripts, I want to make sure I don't forget that script A is dependent on file B. Is there any kind of dependency walker? How do people test out their scripts to make sure they've include all appropriate dependencies? After all, they're all there on my machine :)

Re: Is there any kind of dependency walker?

Posted: Mon Jan 18, 2021 1:52 am
by synthsin75
If nothing else, you can temporarily remove all but one of your custom scripts, try to use it, and Moho will tell you when it can't find something the script expects to find.

Re: Is there any kind of dependency walker?

Posted: Mon Jan 18, 2021 5:45 am
by strider2000
True, the manual approach does work :)

Re: Is there any kind of dependency walker?

Posted: Mon Jan 18, 2021 6:03 am
by synthsin75
You could also write a script to parse the selected script's text and print out every unique global variable of the form **_*****.