I have multiple scheduled Gateway events using functions from a script in the Project Library tree.
In the Gateway scheduled event, I'm importing the script as:
And below, I use the function directly from the module imported:
my_function(param1, param2, param3)
After the script runs, nothing happens, and I get this message in the schedule monitoring tab under "Gateway Scripts."
Traceback (most recent call last):
- File "", line 6, in onScheduledEvent*
NameError: global name 'averagesCalculation' is not defined
The same code works fine when I run it directly in the script console.
How can I access modules created in Project Library from the Gateway? Is this possible?