def scan(build, root, desc, **custom_vars ):
  global numStamped
  numStamped = 0
  try:
    build = string.atoi(build)
  except __HOLE__:
    print 'ERROR: build number is not a number: %s' % build
    sys.exit(1)

  debug = 0	### maybe fix this one day

  varList = ['major', 'minor', 'sub', 'company', 'copyright', 'trademarks', 'product']

  vars, descriptions = load_descriptions(desc, varList)
  vars['build'] = build
  vars.update(custom_vars)

  arg = vars, debug, descriptions
  os.path.walk(root, walk, arg)

  print "Stamped %d files." % (numStamped)
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/win32/scripts/VersionStamp/bulkstamp.py/scan