[Buildbot-devel] splitting master.cfg

Greg Ward gerg.ward+buildbot at gmail.com
Thu Nov 13 15:01:35 UTC 2008


On 12 November 2008, Vikki Finnan said:
> I am working with a rather complicated build setup and my master.cfg
> is rather long. If I add a module and run an import command (import
> buildsteps), the setup will work fine for the first time.
> 
> If I make changes to the buildsteps.py file and run buildbot reconfig,
> everything will work fine, but the changes that I made were not
> reflected.
> 
> I can get this to work if I to something like:
> 
> import buildsteps
> reload(buildsteps)
> from buildsteps import *

You want execfile(): that's how Python spells "include". "import" is
smart and tries to avoid loading the same code multiple times.
execfile() is dumb and just does what you tell it to do, every time.
In this case, dumb is good.

        Greg




More information about the devel mailing list