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 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
JSON
file or anini
file?JSON
files 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.ini
files 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 anini
file to read in classes and corresponding colors for drawing.Beta Was this translation helpful? Give feedback.
All reactions