How do we want to read in configuration settings? #42
Unanswered
2320sharon
asked this question in
Q&A
Replies: 1 comment
|
Good questions. Definitely would like to discuss tomorrow. Initially, I'm inclined towards ini files for the apparent convenience, and multiple files seems like the best path forward |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
How do we want to read in configuration settings?
CoastSeg has a lot of settings that are currently hardcoded, which while it makes it easier for the user to edit them it also has the drawback of cluttering the code. It has been brought up that we want to read the configuration settings from a file.
JSONfile or aninifile?JSONfiles can be easily edited by the user with or without code, but can be tricky when it comes to spacing out items when editing the file directly.inifiles can be manipulated with the ConfigParser module and according to my research are easy to edit both with code and by file. HoloDoodler also uses aninifile to read in classes and corresponding colors for drawing.All reactions