In IBM's Maximo 7.6.1.1, it is possible to write automation scripts with Jython 2.7.0.
Using Jython, I want to determine what Python libraries are available in the system for import.
For instance, I can import the math
and os
libraries, but I can't import the json
library (because it hasn't been added to the system).
It is not possible for me to add additional Python libraries to the system; this is locked down and is out of my control.
There doesn't seem to be a rhyme or reason as to which Python libraries have been included in Maximo, and which ones haven't (it doesn't seem to align with the Standard Python Library).
The documentation and IBM support have been of zero help.
Is there a way to determine what Python libraries are available for import -- via a Jython script?
Example: print list_of_importable_libraries()