Пример #1
0
    retVal = session.listEnv( )
    if not retVal[ "OK" ]:
      print "Error:", retVal[ "Message" ]
      DIRAC.exit( -1 )
    for o, v in retVal[ "Value" ]:
      print o + "=" + v
    DIRAC.exit( 0 )

  arg = args[ 0 ]

  section = None
  option = None

  if "." in arg:
    section, option = arg.split( "." )
  else:
    option = arg

  ret = None
  if section:
    ret = session.get( section, option )
  else:
    ret = session.getEnv( option )

  if not ret[ "OK" ]:
    print critical( ret[ "Message" ] )

  print ret[ "Value" ]