Latest cottle version broke my scripts #2643
-
Latest cottle version broke my scripts. I store all the configurable variables in a single script for easy modification for users. For example:
Also, I have a script with a bunch of functions inside that are often used in all scripts. For example, functions that handle plurals and gender. The way I work is to call both scripts "config script" and the "runtime script" at the very beginning of each script that is going to need said functions or config variables. For example:
Well, all this setup doesn't work with the latest update because now variables are local to the script they are on. Is there a way to change that behaviour to how it used to be? EDIT: Actual version 4.1.0-b2 EDIT2: From time to time I get these errors coming from the "runtime script" mentioned above:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Unfortunately there is no option / switch to exactly bring back the old behavior with the new version of Cottle. With that said, thank you for taking the time to explain your concerns. While some changes will be required, I think we will be able to adapt your personality to the new Cottle version.
These functions also allow you to only set each function or preference once (for example at the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hi there. I've added an
#include
style feature that I think will meet your needs. It will prepend scripts in the order you specify and then render everything together as if it were a single script.It will be available in the next release.