Class GlobalConfig

Synopsis

class GlobalConfig

Description

No description yet.

Mentioned in

Methods

__getattr__
__str__

Source

Lines 30-42 in anyfig/__init__.py.

class GlobalConfig:
  global_cfg = None

  @get_global_cfg
  def __getattr__(self, name):
    return getattr(self.global_cfg, name)

  @get_global_cfg
  def __str__(self):
    return str(self.global_cfg)


global_cfg = GlobalConfig()





Add Discussion as Guest

Log in