libreant icon indicating copy to clipboard operation
libreant copied to clipboard

Should we load default presets on startup?

Open ael-code opened this issue 10 years ago • 2 comments

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?

ael-code avatar Jan 04 '15 03:01 ael-code

@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.

ael-code avatar Jan 04 '15 03:01 ael-code

I think that default presets should be loaded only if no configuration is explicitly provided for PRESETS_PATH

boyska avatar Jan 04 '15 13:01 boyska