Function register_globally

Synopsis

def register_globally(config)

Description

Registers the config with anyfig to be accessible anywhere

Source

Lines 36-41 in anyfig/figutils.py.

def register_globally(config):
  ''' Registers the config with anyfig to be accessible anywhere '''
  assert is_config_class(config), "Can only register anyfig config object"
  global_configs[type(config).__name__] = config






Add Discussion as Guest

Log in