def _FormatAsEnvironmentBlock(envvar_dict):
  block = ''
  nul = '\0'
  for key, value in envvar_dict.iteritems():
    block += key + '=' + value + nul
  block += nul
  return block
Format as an 'environment block' directly suitable for CreateProcess.
dataset/ETHPy150Open adobe/brackets-shell/gyp/pylib/gyp/msvs_emulation.py/_FormatAsEnvironmentBlock