def SetConfigOptions():
 config_opts = {}
 flag_defaults = {}
 if os.environ.get('GRR_CONFIG_FILE'):
  flag_defaults['config'] = os.environ.get('GRR_CONFIG_FILE')
 elif defaults.CONFIG_FILE:
  flag_defaults['config'] = defaults.CONFIG_FILE
 else:
  flag_defaults['config'] = config_lib.Resource().Filter('install_data/etc/grr-server.yaml')
 for (option, value) in config_opts.items():
  config_lib.CONFIG.Set(option, value)
 flags.PARSER.set_defaults(**flag_defaults)

def SetConfigOptions ( ) : config_opts = { } flag_defaults = { } if os . environ . get ( 'GRR_CONFIG_FILE' ) : flag_defaults [ 'config' ] = os . environ . get ( 'GRR_CONFIG_FILE' ) elif defaults . CONFIG_FILE : flag_defaults [ 'config' ] = defaults . CONFIG_FILE else : flag_defaults [ 'config' ] = config_lib . Resource ( ) . Filter ( 'install_data/etc/grr-server.yaml' ) for ( option , value ) in config_opts . items ( ) : config_lib . CONFIG . Set ( option , value ) flags . PARSER . set_defaults ( ** flag_defaults )
set location of configuration flags .