-
Notifications
You must be signed in to change notification settings - Fork 4
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
Moved config.ini.example to config.defaults.ini #109
Conversation
|
Renaming the config without changing the way the config system works is confusing, because the new name is just wrong. This should not be merged yet. |
fafec04
to
8a5a637
Compare
|
I changed the system by loading (I just force pushed, because the PR was not clean. It contained changes of another PR) |
@@ -4,7 +4,7 @@ TODO | |||
Needed testing for FAU FabLab | |||
----------------------------- | |||
|
|||
cp config.ini.example config.ini | |||
cp config.defaults.ini config.ini |
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.
well, this is not really true anymore...
This PR does not completely fix the broken config system, but it might be a step. The milestone ImproveConfig might help to keep in mind that further changes are required. |
But doesn't this code simply load |
As far as I read and tested, the second reading overloads the settings of the first reading. Example:
|
Oh, I think we want to do it like this example: https://docs.python.org/2/library/configparser.html#ConfigParser.RawConfigParser.read (but maybe we want to check if |
From the source it looks quite good, but the documentation and handling of creating the first config needs to be changed. We don't really need a config anymore, maybe FabLabKasse should create some empty dummy config file with short instructions? |
closing as WONTFIX |
I think later we should change the
run.py
parameters. I added a TODO in the code: