[Buildbot-devel] Ultimate fix for 'buildbot reconfig' problem
jolly_roger at itblog.org.ua
Tue Mar 26 23:02:41 UTC 2013
Recently it was mentioned about how Mozilla solves the reconfig
problem. The same approach is used in metabuildbot configs.
However there's a more clean and universal way of doing the same in
just three lines of code for any number of imported modules. Behold:
from types import ModuleType
x = ()
_ = [reload(x) for x in locals() if isinstance(x, ModuleType)]
Some additional comments are available inside this gist.
More information about the devel