libreant
libreant copied to clipboard
Should we load default presets on startup?
Should we load default presets on startup? If the admin inserts his PRESET_PATHS we should load the default presets anyway? How should we calculate the default presets path?
@boyska on #5 wrote:
I believe that the correct thing to do is setting defaultPresets as default value for PRESETS_PATH. Its path should anyway be calculated appropriately (virtualenv etc will make everything harder) and I don't know what's the best way of doing it. I see that Flask does the equivalent of
os.path.dirname(webant.presets.__file__)
which seems a quite correct solution.
I think that default presets should be loaded only if no configuration is explicitly provided for PRESETS_PATH