[Buildbot-devel] MasterShellCommand working directory

Mikhail Sobolev mss at mawhrin.net
Sat Aug 2 13:34:47 UTC 2014


Hi Ian,

On Fri, Aug 01, 2014 at 11:27:02PM +0200, Ian Bell wrote:
> But for the life of me I can't figure out what the default working
> directory that is used on the master.  Can anyone shed some light?  I ran a
> PWD, and I got the folder that I ran buildbot start from.  Is there any way
> to determine the folder that contains the master.cfg file?  I see there is
> an OLDPWD environmental variable that is defined to be the folder that
> contains master.cfg, is that reliable?
This is not exactly the answer you are looking for, however
MasterShellCommand has a parameter called `path`, which specifies the
directory where where the step will be run in.

So instead of guessing what directory you are in, you could just tell it
where it should be.

Hope this helps,

-- 
Misha




More information about the devel mailing list