Folk,
I am using Jython as a runtime interpreter embedded in a monitor
system. The system runs many monitors at a time. Each monitor needs
its own name space. Within a monitor there may be a number of modules.
Modules are synthesized at runtime and (hopefully) are not stored as
files in a file system.
I have the following problems:
1) compile a module to a runtime representation (this appears to be done
by imp.compileFromSource which is not a public interface) and save it in
the monitor system
2) install (import) the module into as many of the interpreters as
necessary.
I am assuming that I can create several interpreters with disjoint name
spaces (my experiments seem to indicate that this is possible).
So, any help on items 1 and 2 or on the error of my way will be fully
appreciated.
Thanks
-steve
|