def ExpandMacros(string, expansions):
  if '$' in string:
    for old, new in expansions.iteritems():
      assert '$(' not in new, new
      string = string.replace(old, new)
  return string
run this method in a separate thread
dataset/ETHPy150Open adobe/brackets-shell/gyp/pylib/gyp/msvs_emulation.py/ExpandMacros--crossover with--dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/Coordinator.initialize_thread