def get_setting(varname):
 gl = globals()
 if (varname not in gl.keys()):
  raise ValueError(('Unknown setting %s' % varname))
 return gl[varname]

def get_setting ( varname ) : gl = globals ( ) if ( varname not in gl . keys ( ) ) : raise ValueError ( ( 'Unknown setting %s' % varname ) ) return gl [ varname ]
returns the value of a configuration variable .