aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/configfile.py
Commit message (Collapse)AuthorAgeFilesLines
* configfile: Fix the exception raised when an included file is missing (#1931)Julien Lirochon2019-09-011-1/+1
| | | Signed-off-by: Julien Lirochon <julien@lirochon.net>
* configfile: Add "include" support (#1359)lauckhart2019-03-221-14/+65
| | | | | | | | | Allows configuration files to include other configuration files using [include filename.cfg] syntax. Klippy loads include files in the position of the include header; subsequent definitions override included values. Supports wildcards (e.g. [include macros/*.cfg). Allows included files to include other files but blocks recursion. Signed-off-by: Greg Lauckhart <greg@lauckhart.com>
* configfile: Strip trailing commentsKevin O'Connor2018-10-161-0/+8
| | | | | | | The Python 2.x ConfigParser doesn't support stripping of trailing '#' style comments. Do that manually before parsing the config. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: add get_prefix_options methodJanar Sööt2018-09-301-0/+3
| | | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* configfile: Add support for rewriting the printer config fileKevin O'Connor2018-09-251-17/+148
| | | | | | | Add support for writing back the main printer config file with additional calibration data stored in it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Move config file code from klippy.py to new fileKevin O'Connor2018-09-251-0/+116
Add a klippy/configfile.py file with the code needed to read the main printer config file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>