Strangely enough if I return dir(MyScripts)
, from handleMessage()
, it leads with a list of all of the objects at the same level -- namely my other Project Library contents. I would have expected it to return only the fuctions within the MyScripts
library. The object seems to have been injected with references to its peers somehow.
return getattr(someLibraryScript, payload.pop('functionNameKey'))(payload)
This is an improvement, an intermediate solution. It would let me abstract into a given library without access to every library (except for the apparent knowledge of its neighbors?).