How to import a Project Library script inside a tag readAsync callback

(Currently) gateway events follow a weird, legacy Python scoping behavior that causes behaviors like this. (Currently) the only way to avoid this is to put at least any internal functions you author into the project library themselves, and/or the entire body of your event script such that the only thing actually in the gateway event script is a single line call in to your project library.

I stress currently because we're (finally) removing this limitation in 8.3.

4 Likes