-
-
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
Option to specify alternate config directory on first run #1243
Comments
@alanhuang122 are you thinking something like |
@alanhuang122 It wasn't run_script.py, but the config helpers. Does 646f542 do what you're looking for? |
Per #1404 (comment), I dug up the logs of the IRC conversation that led to this issue being opened in the first place. The words of the person who actually asked about this should give the best context:
(Self-note: This is from |
The `sopel.run_script.homedir` variable was a "global" variable that belong to the configuration realm. Therefore, I moved it to the `sopel.config` module, and renamed it to `DEFAULT_HOMEDIR`. This name: * follow the PEP8 naming convention (not required but nice to have) * move from a "run thing" module to a "config" module, which is more appropriate * express the need for being the "default" location for configuration, since a local configuration can be used that might not be in it All of this is unecessary, and more "nice to have", but it could help fixing sopel-irc#1243 - if that makes sense.
The `sopel.run_script.homedir` variable was a "global" variable that belong to the configuration realm. Therefore, I moved it to the `sopel.config` module, and renamed it to `DEFAULT_HOMEDIR`. This name: * follow the PEP8 naming convention (not required but nice to have) * move from a "run thing" module to a "config" module, which is more appropriate * express the need for being the "default" location for configuration, since a local configuration can be used that might not be in it All of this is unecessary, and more "nice to have", but it could help fixing sopel-irc#1243 - if that makes sense.
The `sopel.run_script.homedir` variable was a "global" variable that belong to the configuration realm. Therefore, I moved it to the `sopel.config` module, and renamed it to `DEFAULT_HOMEDIR`. This name: * follow the PEP8 naming convention (not required but nice to have) * move from a "run thing" module to a "config" module, which is more appropriate * express the need for being the "default" location for configuration, since a local configuration can be used that might not be in it All of this is unecessary, and more "nice to have", but it could help fixing sopel-irc#1243 - if that makes sense.
The `sopel.run_script.homedir` variable was a "global" variable that belonged to the configuration realm. Therefore, I moved it to the `sopel.config` module, and renamed it to `DEFAULT_HOMEDIR`. This name: * follow the PEP8 naming convention (not required but nice to have) * move from a "run thing" module to a "config" module, which is more appropriate * express the need for being the "default" location for configuration, since a local configuration can be used that might not be in it All of this is unecessary, and more "nice to have", but it could help fixing sopel-irc#1243 - if that makes sense.
The `sopel.run_script.homedir` variable was a "global" variable that belonged to the configuration realm. Therefore, I moved it to the `sopel.config` module, and renamed it to `DEFAULT_HOMEDIR`. This name: * follow the PEP8 naming convention (not required but nice to have) * move from a "run thing" module to a "config" module, which is more appropriate * express the need for being the "default" location for configuration, since a local configuration can be used that might not be in it All of this is unecessary, and more "nice to have", but it could help fixing sopel-irc#1243 - if that makes sense.
Infer config directory from given config filename. Resolves sopel-irc#1243
When the bot is first run, it executes
sopel/run_script.py
at startup.Said script is hardcoded to create
~/.sopel
if it doesn't already exist.Should there be an option to allow the user to specify an alternate directory to use?
This was observed on d9cfb41 running
python sopel.py
without prior configuration.The text was updated successfully, but these errors were encountered: