When using the current settings, they are loaded from the configuration file into an attribute dictionary (AttrDict), which persists the data nicely. A problem is that once a script initializes the import, future imports performed will skip the already imported module. So if a module changes the settings, they aren't available elsewhere. A reasonably cheap hack is to just store the settings in a function, and initialize the function in each script that wants to use the settings -- that way, we can force the load as needed.
When using the current settings, they are loaded from the configuration file into an attribute dictionary (
AttrDict
), which persists the data nicely. A problem is that once a script initializes the import, future imports performed will skip the already imported module. So if a module changes the settings, they aren't available elsewhere. A reasonably cheap hack is to just store the settings in a function, and initialize the function in each script that wants to use the settings -- that way, we can force the load as needed.