Skip to content
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

Ensure running with a config file outside ~/.sopel works as expected #946

Closed
3 tasks done
embolalia opened this issue Nov 22, 2015 · 9 comments
Closed
3 tasks done
Assignees
Labels
Bug Things to squish; generally used for issues Documentation
Milestone

Comments

@embolalia
Copy link
Contributor

embolalia commented Nov 22, 2015

  • Config wizard should not create ~/.sopel if the specified config is not in that directory
  • Existing code should be checked to ensure nothing else assumes things in ~/.sopel
  • How to specify a config outside of ~/.sopel should be documented
@embolalia embolalia added Bug Things to squish; generally used for issues Documentation labels Nov 22, 2015
@Exirel
Copy link
Contributor

Exirel commented Jan 14, 2019

I should have a look while working on #1429

@Exirel Exirel added the Long-term Planning Things that need to happen at some point in the future, but need to NOT happen soon. label Mar 21, 2019
@dgw dgw added this to the 7.0.0 milestone Aug 24, 2019
@dgw
Copy link
Member

dgw commented Aug 24, 2019

This issue gets a specific callout in irctest's readme, and I think we would be well served to solve whatever remains of this issue for the Sopel 7.0 release. I know we've already done some homedir-related stuff, and if my hunch is correct we're already most of the way to closing this.

@dgw
Copy link
Member

dgw commented Aug 24, 2019

Preliminary list of related PRs: #1404 (merged), #1574 (awaiting final review from yours truly), & #1598 (awaiting final tweaks from @Exirel). About the only unaddressed reference to ~/.sopel I could find in my brief survey was a hard-coded reference in test_tools that should be updated to use the config.DEFAULT_HOMEDIR constant added way back in #1429.

home_dir = os.path.join(os.path.expanduser('~'), '.sopel')

@Exirel Exirel self-assigned this Sep 27, 2019
@Exirel
Copy link
Contributor

Exirel commented Sep 27, 2019

I need to double check on my end, but as @dgw said, it's almost done yes.

@Exirel
Copy link
Contributor

Exirel commented Nov 14, 2019

Fun fact, the rework of test tools in #1731 make the hard-coded home_dir unnecessary, because we can use a real Sopel instance instead of the MockSopel. So it's almost done: all that is required now is to 1) merge #1731 then 2) use the new tools in every tests.

@Exirel Exirel removed the Long-term Planning Things that need to happen at some point in the future, but need to NOT happen soon. label Nov 14, 2019
@dgw
Copy link
Member

dgw commented Nov 24, 2019

So it's almost done: all that is required now is to 1) merge #1731 then 2) use the new tools in every tests.

FWIW, test_tools still has the same old hard-coded home_dir value. @Exirel is tweaking that even worth blocking close of this issue for? I feel like it isn't.

@Exirel
Copy link
Contributor

Exirel commented Dec 9, 2019

I'm working on that last part with #1781 and I'm probably going to remove both MockSopel and MockSopelWrapper (and also MockConfig).

@Exirel
Copy link
Contributor

Exirel commented Dec 10, 2019

is tweaking that even worth blocking close of this issue for? I feel like it isn't.

Agree, we can totally close that issue once #1781 is merged, because Sopel won't use the deprecated code itself.

@dgw
Copy link
Member

dgw commented Dec 15, 2019

Checked off the "existing code" task now that #1781 is merged. We should be golden… FINALLY! 🎉

@dgw dgw closed this as completed Dec 15, 2019
progval added a commit to progval/irctest that referenced this issue Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Things to squish; generally used for issues Documentation
Projects
None yet
Development

No branches or pull requests

3 participants