def OpenOutput(path, mode='w'):
  gyp.common.EnsureDirExists(path)
  return open(path, mode)
Open |path| for writing, creating directories if necessary.
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/generator/ninja.py/OpenOutput