def OpenOutput(path, mode='w'):
 gyp.common.EnsureDirExists(path)
 return open(path, mode)

def OpenOutput ( path , mode = 'w' ) : gyp . common . EnsureDirExists ( path ) return open ( path , mode )
open |path| for writing .