-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config: don't assume ~/.sopel as dotdir #1404
Conversation
I think I was reporting for someone in the channel. I don't really remember the justification anymore. If I'm not misreading the code, this would work by specifying |
Yeah, you were. I'm glad I keep my IRC logs, because it means #1243 (comment) now has the whole conversation that led to you opening the issue in the first place. I don't know if this is actually enough, based on that added context, but there's certainly time to add a new argument in Sopel 7 ( |
In #1429 I used a |
@Exirel Want to drop a line note or two with suggested changes to show what you mean? Obviously I haven't touched this one in a while. 😅 |
Over here: https://github.com/sopel-irc/sopel/pull/1429/files#diff-7fa6048ad26c4e738f57cc6ed66b156aR37 From my point of view, one of the issue faced by Sopel's code is that default variable and business rules (or behavior rules/features) are all over the places. So I thought it could be a good idea to put this default variable (here, the default location to Sopel's homedir) where it belongs, ie. in We recently discussed on IRC about reorganizing the code without any change in feature, and I think this is one example of how I would change things: making sure each feature has one and only place to define their rules. |
It also means that this:
Would become this:
|
That |
Rebased and tweaked to use @Exirel does this look better now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Infer config directory from given config filename. I found this branch kicking around while looking for something else… how I forgot about it for six months, I have no idea.
Resolves #1243 (@alanhuang122 please confirm 😅)