Anyone know a way to dynamically get the list of l...
# suitescript
s
Anyone know a way to dynamically get the list of loaded modules at runtime of a SS 2 script?
Got close, but there doesn't seem to be a way unfortunately. You can include the "require" module in the define dependencies, which gets you close, but there's no method available to get all modules loaded on that module, only to check if a specific module was loaded.
b
cheat and overwrite the define function to store its arguments
basically what unit testing libraries do
s
Ah, interesting thought!
That works well, thanks for the tip!
b
be careful, this is a gateway to great evil
😇 1