genegis / genegis

Managing individual based genetic records in a geographic context.
Mozilla Public License 2.0
4 stars 1 forks source link

settings should be easily reloadable #115

Closed scw closed 10 years ago

scw commented 10 years ago

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.