On Thursday, September 5, 2019 at 8:20:01 AM UTC-5, Edward K. Ream wrote:
> The c.config class should have a method that tells the actual source of
> each setting.
>
Heh. gs.path apparently already *is* the file that *actually* defines the
setting. So, c.config.settingIsActiveInPath is just:
def settingIsActiveInPath(self, gs, target_path):
"""Return True if settings file given by path actually defines the
setting, gs."""
assert isinstance(gs, g.GeneralSetting), repr(gs)
return gs.path == target_path
That is, Leo's startup logic honors the precedence of settings and updates
c.config.settingsDict accordingly.
We can regard c.config.settingIsActiveInPath as a template that might have
to be updated in any grand reorg of Leo's startup code.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/3aaa301c-8107-40cd-8d16-5982a4e19c73%40googlegroups.com.