[Buildbot-devel] upcoming release

Brian Warner warner-buildbot at lothar.com
Tue Apr 26 19:06:38 UTC 2005


> From: Elliot Murphy
> 
> Perhaps I can provide some guidance as to how application specific
> data is stored under Windows.
> 
> On my Windows XP box, os.path.expanduser('~') returns "C:\Documents
> and Settings\Emurphy". %HOME% is not set in the environment, but
> %HOMEDRIVE% is set to C: and %HOMEPATH% is set to "\Documents and
> Settings\Emurphy". I have also checked that this is true for a Windows
> 2003 machine.
> 
> %APPDATA% is set to "C:\Documents and Settings\Emurphy\Application
> Data", and well behaved Windows applications (Subversion, Firefox,
> etc.) store their information in a subdirectory of %APPDATA% named
> after the application. I guess what I'm getting at is that I think the
> Windows equivalent of ~/.buildbot is %APPDATA%\buildbot.
> 
> Hope this helps,
> -elliot

Yes, that does indeed help. Thanks!

So the idea with this new .buildbot/ thing is that you may want to use an
account-wide default, in which case ~/.buildbot/ is appropriate (or, it
sounds like os.path.join(os.environ['%APPDATA%'], buildbot) ). OR, you may
have specific project directories which use different buildmasters, so a
per-project ./.buildbot/ or ../.buildbot/, etc, is appropriate. The idea is
that I'm hacking along, I do a 'cvs commit foo.c', then can immediately run
'buildbot statusgui' in that same directory and wind up watching the status
of the build triggered by the change I just committed. The 'try' feature will
use the same thing, .buildbot/ specifying which buildmaster the potential
change should be submitted to.

If there is a reasonable windows-way to do this project-specific thing, let
me know. Otherwise I'll set it up so that, under windows, we only look in the
~/.buildbot -equivalent. I can imagine that dot-directories aren't that
common in that world.

And, is that APPDATA snippet above correct? Are the environment keys actually
named with %-% surrounding them?

thanks,
 -Brian




More information about the devel mailing list