DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
from buildbot import master
import sys

class ConfigError(Exception):
  pass

class ConfigLoader(master.BuildMaster):
  def __init__(self, configFileName="master.cfg"):
    master.BuildMaster.__init__(self, ".", configFileName)
    configFile = open(configFileName, "r")
    try:
      self.loadConfig(configFile)
    except:
      raise ConfigError

try:
  if len(sys.argv) > 1:
    c = ConfigLoader(sys.argv[1])
  else:
    c = ConfigLoader()
except IOError:
  sys.exit(2)
except ConfigError:
  sys.exit(1)