Mark Rowe wrote: > A better method would be something along the lines of: > > plugin = __import__(pluginName) > plugin.someMethod()
In the one time I did a plugin architecture I found that
state = ... set up intial state for my program ...
...
plugin = __import__(pluginName)
plugin.someMethod(state)
was useful because it gave the plugin a way to modify
the program state, rather than changing global variables.
Andrew
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
