def jobconf_from_env(variable, default=None):
 name = variable.replace('.', '_')
 if (name in os.environ):
  return os.environ[name]
 for var in _JOBCONF_MAP.get(variable, {}).values():
  name = var.replace('.', '_')
  if (name in os.environ):
   return os.environ[name]
 return default

def jobconf_from_env ( variable , default = None ) : name = variable . replace ( '.' , '_' ) if ( name in os . environ ) : return os . environ [ name ] for var in _JOBCONF_MAP . get ( variable , { } ) . values ( ) : name = var . replace ( '.' , '_' ) if ( name in os . environ ) : return os . environ [ name ] return default
get the value of a jobconf variable from the runtime environment .