Config related classes and methods
The objectconfig
is a singleton instance of WaderConfig.
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 wader.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 | WaderConfigBase | I manage Wader's configuration |
Class | MobileProfile | I am a mobile profile on the system |