<html lang="en"> <head> <title>Predefined Config File Symbols - BuildBot Manual - 0.8.4p1</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="BuildBot Manual - 0.8.4p1"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Configuration.html#Configuration" title="Configuration"> <link rel="prev" href="Config-File-Format.html#Config-File-Format" title="Config File Format"> <link rel="next" href="Loading-the-Config-File.html#Loading-the-Config-File" title="Loading the Config File"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <!-- This is the BuildBot manual for Buildbot version 0.8.4p1. Copyright (C) 2005, 2006, 2009, 2010 Brian Warner Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.--> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Predefined-Config-File-Symbols"></a> <p> Next: <a rel="next" accesskey="n" href="Loading-the-Config-File.html#Loading-the-Config-File">Loading the Config File</a>, Previous: <a rel="previous" accesskey="p" href="Config-File-Format.html#Config-File-Format">Config File Format</a>, Up: <a rel="up" accesskey="u" href="Configuration.html#Configuration">Configuration</a> <hr> </div> <h3 class="section">4.2 Predefined Config File Symbols</h3> <p>The following symbols are automatically available for use in the configuration file. <dl> <dt><code>basedir</code><dd>the base directory for the buildmaster. This string has not been expanded, so it may start with a tilde. It needs to be expanded before use. The config file is located in <code>os.path.expanduser(os.path.join(basedir, 'master.cfg'))</code> <br><dt><code>__file__</code><dd>the absolute path of the config file. The config file's directory is located in <code>os.path.dirname(__file__)</code>. </dl> </body></html>