Config related classes and methods
The objectconfig
is a
singleton instance of VMCConfig. The overhead of opening the object,
performing a get/set and closing it was too much. That's why its a
singleton. The instance is closed during vmc.common.shutdown.shutdown_core()
.
You must be careful as importing it too early during the first run of the
program, could cause that the config file is not created yet and you'd get
a messy traceback. Delay its import as much as possible in modules used at
startup or that are imported at startup.
Class | VMCConfig | Undocumented |