You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated config has a [DEFAULT] section with all the config options but it doesn't apply the values to the config - one has to move the values to the right sections on their own.
The text was updated successfully, but these errors were encountered:
I am just getting started using Sydent, but I think this one might be straightforward?
The comment looks to be correct, but the code gets it backwards. This is sydent.py
# if the config file doesn't exist, prepopulate the config object# with the defaults, in the right section.## otherwise, we have to put the defaults in the DEFAULT section,# to ensure that they don't override anyone's settings which are# in their config file in the default section (which is likely,# because sydent used to be braindead).use_defaults=notos.path.exists(config_file)
Dropping the not in that last line makes it work for me.
use_defaults=os.path.exists(config_file)
Without an existing config file, it populates one that looks reasonable. Then after I add my configuration, it doesn't get overwritten on the next run.
But my config is admittedly very simple, and it's possible that I'm missing something more subtle.
The generated config has a
[DEFAULT]
section with all the config options but it doesn't apply the values to the config - one has to move the values to the right sections on their own.The text was updated successfully, but these errors were encountered: